Better trie implementations
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
"net/url"
|
||||
"strconv"
|
||||
|
||||
"git.maze.io/maze/styx/dataset"
|
||||
"git.maze.io/maze/styx/internal/netutil"
|
||||
"git.maze.io/maze/styx/logger"
|
||||
proxy "git.maze.io/maze/styx/proxy"
|
||||
@@ -48,14 +47,16 @@ func NewInputFromConn(c net.Conn) *Input {
|
||||
TLS: NewTLSFromConn(c),
|
||||
}
|
||||
|
||||
if wcl, ok := c.(dataset.WithClient); ok {
|
||||
client, err := wcl.Client()
|
||||
if err == nil {
|
||||
input.Context["client_id"] = client.ID
|
||||
input.Context["client_description"] = client.Description
|
||||
input.Context["groups"] = client.Groups
|
||||
/*
|
||||
if wcl, ok := c.(dataset.WithClient); ok {
|
||||
client, err := wcl.Client()
|
||||
if err == nil {
|
||||
input.Context["client_id"] = client.ID
|
||||
input.Context["client_description"] = client.Description
|
||||
input.Context["groups"] = client.Groups
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if ctx, ok := c.(proxy.Context); ok {
|
||||
input.Context["local"] = NewClientFromAddr(ctx.LocalAddr())
|
||||
|
Reference in New Issue
Block a user