5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 15:20:30 +00:00

fix logging for socks

This commit is contained in:
Arceliar 2021-06-12 07:03:32 -05:00
parent eeadffe4a5
commit 91235980af

View File

@ -277,7 +277,7 @@ func (t *tcp) call(saddr string, options tcpOptions, sintf string) {
return return
} }
t.waitgroup.Add(1) t.waitgroup.Add(1)
options.socksPeerAddr = conn.RemoteAddr().String() options.socksPeerAddr = saddr
if ch := t.handler(conn, false, options); ch != nil { if ch := t.handler(conn, false, options); ch != nil {
<-ch <-ch
} }