Support IPv6
Roguelazer opened this issue · 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?
Why does this even subclass socket?
I guess for better monkey patch compatibility/it is intended as a compatible replacement for socket
I find the way to solve ipv6 socks5 proxy.
refer to:
woo200/sockslib#1 (comment)
The author of sockslib was very kind and helped me solve this problem.