From c2fe1c3bdffd8c0d1256881f64ff5586403e1a63 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 3 Jan 2015 20:51:41 +0100 Subject: [PATCH] improve ipv6 connection with zeroconf --- src/common/zeroconf/client_zeroconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index 07f82092a..e4e57cb45 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -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