You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want set outgoing address (ipv6) for this socks5. I tried this code, but got error
"socks5: 2022/10/18 06:55:40 [E]: server: connect to xxxx:443 failed, dial tcp: address [xxxx:xxxx::1]:0: no suitable address found"
Hi.
I want set outgoing address (ipv6) for this socks5. I tried this code, but got error
"socks5: 2022/10/18 06:55:40 [E]: server: connect to xxxx:443 failed, dial tcp: address [xxxx:xxxx::1]:0: no suitable address found"
`
server := socks5.NewServer(
socks5.WithLogger(socks5.NewLogger(log.New(os.Stdout, "socks5: ", log.LstdFlags))),
socks5.WithDial(func(ctx context.Context, network, addr string) (net.Conn, error) {
localAddr, _ := net.ResolveTCPAddr("tcp", "[2a0f:103::1]:0")
d := net.Dialer{LocalAddr: localAddr}
return d.Dial(network, addr)
}),
)
`
The text was updated successfully, but these errors were encountered: