go-socks5 icon indicating copy to clipboard operation
go-socks5 copied to clipboard

Fix panic when target.LocalAddr() is not *net.TCPAddr

Open WGH- opened this issue 5 years ago • 0 comments

This happens when you use custom dialer that returns custom net.Conn that returns a non-*net.TCPAddr net.Addr for LocalAddr() calls.

For example, if you dial through an SSH connection, it might be difficult to figure out remote local address, so you return a stub instead.

WGH- avatar Dec 18 '18 17:12 WGH-