changeset d09e4ac8fe16 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=d09e4ac8fe16
description: do not send ::1 as peer address when sending a file. Fixes #8191
diffstat:
src/common/jingle_transport.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r fe0edaff4d8d -r d09e4ac8fe16 src/common/jingle_transport.py
--- a/src/common/jingle_transport.py Sun Nov 15 21:07:02 2015 +0100
+++ b/src/common/jingle_transport.py Tue Nov 17 21:16:26 2015 +0100
@@ -198,7 +198,8 @@
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,
changeset 1afdd8382f0c in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=1afdd8382f0c
description: better detection of local IPs. See #8191
diffstat:
src/common/jingle_transport.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d09e4ac8fe16 -r 1afdd8382f0c src/common/jingle_transport.py
--- a/src/common/jingle_transport.py Tue Nov 17 21:16:26 2015 +0100
+++ b/src/common/jingle_transport.py Tue Nov 17 21:33:30 2015 +0100
@@ -198,7 +198,7 @@
try:
for addrinfo in socket.getaddrinfo(socket.gethostname(), None):
addr = addrinfo[4][0]
- if not addr in hosts and not addr.startswith('127') and \
+ if not addr in hosts and not addr.startswith('127.') and \
addr != '::1':
c = {'host': addr,
'candidate_id': self.connection.connection.getAnID(),