From 91235980af18b036240eda6c1d11383f580352fc Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 12 Jun 2021 07:03:32 -0500 Subject: [PATCH] fix logging for socks --- src/core/tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp.go b/src/core/tcp.go index c9bfd65f..5c3e506b 100644 --- a/src/core/tcp.go +++ b/src/core/tcp.go @@ -277,7 +277,7 @@ func (t *tcp) call(saddr string, options tcpOptions, sintf string) { return } t.waitgroup.Add(1) - options.socksPeerAddr = conn.RemoteAddr().String() + options.socksPeerAddr = saddr if ch := t.handler(conn, false, options); ch != nil { <-ch }