PySocks icon indicating copy to clipboard operation
PySocks copied to clipboard

Support IPv6

Open Roguelazer opened this issue 5 years ago • 2 comments

It's amazing that this library doesn't natively support IPv6, either on the connection to the proxy or through the proxy. You can kind of hack it up for the connection to the proxy server by passing AF_INET6 as the first argument to the socksocket constructor, but it still breaks and doesn't at all support IPv6 servers.

Why does this even subclass socket? If I rewrote this to no longer subclass socket and properly support IPv6, would there be interest?

Roguelazer avatar Mar 26 '20 00:03 Roguelazer

Why does this even subclass socket?

I guess for better monkey patch compatibility/it is intended as a compatible replacement for socket

cubimon avatar Mar 28 '20 11:03 cubimon

I find the way to solve ipv6 socks5 proxy. refer to: https://github.com/woo200/sockslib/issues/1#issuecomment-1634545042

The author of sockslib was very kind and helped me solve this problem.

sunshe35 avatar Jul 15 '23 11:07 sunshe35