Closed schmir closed 11 years ago
So your localhost
resolves to ipv6 but your python has ipv6 disabled. No surprise puka is confused :)
Can you run this patch and check if it's sufficient?
yes, that solves it. thanks!
why does puka prefer IPv6 addresses? python's socket.create_connection tries IPv4 addresses first...
No particular reason. Both choices (ipv4 vs ipv6 first) are wrong, so it should make no difference.
I'm glad the patch works!
The following code
fails on my system with
The problem is I have IPv6 disabled in my python installation, but puka decides to use IPv6 addresses if it can resolve them.
puka shouldn't ask for IPv6 addresses if it can't use them later. You can use socket.has_ipv6 to check if python supports IPv6.