improve ipv6 connection with zeroconf

This commit is contained in:
Yann Leboulanger 2015-01-03 20:51:41 +01:00
parent 78b3fe0b20
commit c2fe1c3bdf
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ class P2PConnection(IdleObject, PlugIn):
def do_connect(self):
errnum = 0
try:
self._sock.connect(self._server)
self._sock.connect(self._server[:2])
self._sock.setblocking(False)
except Exception as ee:
errnum = ee.errno