better detection of local IPs. See #8191

This commit is contained in:
Yann Leboulanger 2015-11-17 21:33:30 +01:00
parent 2ab937e846
commit 5b67a32ca0
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ 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') and \
if not addr in hosts and not addr.startswith('127.') and \
addr != '::1':
c = {'host': addr,
'candidate_id': self.connection.connection.getAnID(),