This commit is contained in:
Yann Leboulanger 2008-04-15 15:59:13 +00:00
parent 1a2f60186a
commit 0568a4b32b
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class ZeroconfListener(IdleObject):
def bind(self):
flags = socket.AI_PASSIVE
if hasattr(socket, 'AI_ADDRCONFIG'):
flags |= socket.AI_ADDRCONFIG)
flags |= socket.AI_ADDRCONFIG
ai = socket.getaddrinfo(None, self.port, socket.AF_UNSPEC,
socket.SOCK_STREAM, 0, flags)[0]
self._serv = socket.socket(ai[0], ai[1])