From 2ab937e8462fe632cbe3ccc4f8fc6662233b879a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 17 Nov 2015 21:16:26 +0100 Subject: [PATCH] do not send ::1 as peer address when sending a file. Fixes #8191 --- src/common/jingle_transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/jingle_transport.py b/src/common/jingle_transport.py index afd8969ee..1d36d8e71 100644 --- a/src/common/jingle_transport.py +++ b/src/common/jingle_transport.py @@ -198,7 +198,8 @@ class JingleTransportSocks5(JingleTransport): try: for addrinfo in socket.getaddrinfo(socket.gethostname(), None): addr = addrinfo[4][0] - if not addr in hosts and not addr.startswith('127'): + if not addr in hosts and not addr.startswith('127') and \ + addr != '::1': c = {'host': addr, 'candidate_id': self.connection.connection.getAnID(), 'port': port,