do not send ::1 as peer address when sending a file. Fixes #8191

This commit is contained in:
Yann Leboulanger 2015-11-17 21:16:26 +01:00
parent 8326e56793
commit 2ab937e846
1 changed files with 2 additions and 1 deletions

View File

@ -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,