improve ipv6 connection with zeroconf
This commit is contained in:
parent
78b3fe0b20
commit
c2fe1c3bdf
|
@ -446,7 +446,7 @@ class P2PConnection(IdleObject, PlugIn):
|
||||||
def do_connect(self):
|
def do_connect(self):
|
||||||
errnum = 0
|
errnum = 0
|
||||||
try:
|
try:
|
||||||
self._sock.connect(self._server)
|
self._sock.connect(self._server[:2])
|
||||||
self._sock.setblocking(False)
|
self._sock.setblocking(False)
|
||||||
except Exception as ee:
|
except Exception as ee:
|
||||||
errnum = ee.errno
|
errnum = ee.errno
|
||||||
|
|
Loading…
Reference in New Issue