Set SOCKS peer addr to resolved address

This commit is contained in:
Neil Alexander 2020-05-09 11:26:09 +01:00
parent 8b180e941a
commit 13a2d99fdc
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -292,7 +292,7 @@ func (t *tcp) call(saddr string, options tcpOptions, sintf string) {
return
}
t.waitgroup.Add(1)
options.socksPeerAddr = saddr
options.socksPeerAddr = conn.RemoteAddr().String()
t.handler(conn, false, options)
} else {
dst, err := net.ResolveTCPAddr("tcp", saddr)