[rbldnsd] Disabling ipv6-specific tests
Jeff Dairiki
dairiki at dairiki.org
Fri Aug 2 02:40:24 MSK 2013
On Thu, Aug 01, 2013 at 11:31:11AM -0400, Michael Orlitzky wrote:
> Awesome, it's working. With that out of the way, there's another small
> problem =)
>
> >>> import socket
> >>> socket.has_ipv6
> False
> >>> s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
> >>> s.close()
>
> I think that will catch the missing kernel support (I haven't made it
> that far yet), but it doesn't look like it works for python. This should
> work though:
>
> - no_ipv6 = Rbldnsd().no_ipv6
> + no_ipv6 = Rbldnsd().no_ipv6 or not socket.has_ipv6
Oof. Who knew that you could create an ipv6 socket without has_ipv6?
I guess I should have listened to you in the first place...
Hopefully this fixes it:
https://github.com/dairiki/rbldnsd/commit/087e1a1
Jeff
More information about the rbldnsd
mailing list