commit 6c2d8901d1bb099d026ddd820f0091a68a9b0b5c Author: Isis Lovecruft isis@torproject.org Date: Mon Apr 22 00:45:35 2013 +0000
Move to call IPAddress explicitly from ipaddr.IPAdress. --- nettests/experimental/tls_handshake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nettests/experimental/tls_handshake.py b/nettests/experimental/tls_handshake.py index 3585657..b715387 100644 --- a/nettests/experimental/tls_handshake.py +++ b/nettests/experimental/tls_handshake.py @@ -213,7 +213,7 @@ class HandshakeTest(nettest.NetTestCase):
def buildSocket(self, addr): global s - ip = IPAddress(addr) ## learn if we're IPv4 or IPv6 + ip = ipaddr.IPAddress(addr) ## learn if we're IPv4 or IPv6 if ip.version == 4: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) elif ip.version == 6: