#! /bin/sh /usr/share/dpatch/dpatch-run ## 16_fix_ipv6_in_SocketHandler.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix the logic in the SocketHandler.py bind implemenation for ipv6. @DPATCH@ --- bittornado.orig/BitTornado/SocketHandler.py +++ bittornado/BitTornado/SocketHandler.py @@ -166,7 +166,7 @@ else: if self.ipv6_enable: addrinfos.append([socket.AF_INET6, None, None, None, ('', port)]) - if not addrinfos or ipv6_socket_style != 0: + if not addrinfos or ipv6_socket_style == 0: addrinfos.append([socket.AF_INET, None, None, None, ('', port)]) for addrinfo in addrinfos: try: