Fix IPv6 typo

This commit is contained in:
Mike Place 2014-08-15 14:30:44 -06:00
parent 9b975ea28d
commit 3bb602104c

View File

@ -171,7 +171,7 @@ class SREQ(object):
zmq.RECONNECT_IVL_MAX, 5000
)
if self.master.startswith('tcp://[') and hasattr(zmq, 'IPV4ONLY'):
if self.master.startswith('tcp://') and hasattr(zmq, 'IPV4ONLY'):
# IPv6 sockets work for both IPv6 and IPv4 addresses
self._socket.setsockopt(zmq.IPV4ONLY, 0)
self._socket.linger = self.linger