summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO5
-rw-r--r--pkg/server/socket/proxy.go3
2 files changed, 2 insertions, 6 deletions
diff --git a/TODO b/TODO
index 852b397..2191e8f 100644
--- a/TODO
+++ b/TODO
@@ -12,8 +12,3 @@
- docs
- tproxy usage
-
-- dial with timeout
-- proxy socket with connect wait timeout
-- fix: set a @[a]
-- info for proxy
diff --git a/pkg/server/socket/proxy.go b/pkg/server/socket/proxy.go
index 67c5769..e4baec2 100644
--- a/pkg/server/socket/proxy.go
+++ b/pkg/server/socket/proxy.go
@@ -47,7 +47,7 @@ func (sock *proxySocket) Close() {
}
func (s *proxyServer) String() string {
- return "proxy"
+ return "proxy(" + s.addr + ")"
}
func (s *proxyServer) Send(wq queue.Q) error {
@@ -89,6 +89,7 @@ func (s *proxyServer) initConn(addr string) error {
return err
}
+ s.addr = addr
s.conn = conn
return nil