better detection of local IPs. See #8191
This commit is contained in:
parent
2ab937e846
commit
5b67a32ca0
|
@ -198,7 +198,7 @@ class JingleTransportSocks5(JingleTransport):
|
||||||
try:
|
try:
|
||||||
for addrinfo in socket.getaddrinfo(socket.gethostname(), None):
|
for addrinfo in socket.getaddrinfo(socket.gethostname(), None):
|
||||||
addr = addrinfo[4][0]
|
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':
|
addr != '::1':
|
||||||
c = {'host': addr,
|
c = {'host': addr,
|
||||||
'candidate_id': self.connection.connection.getAnID(),
|
'candidate_id': self.connection.connection.getAnID(),
|
||||||
|
|
Loading…
Reference in New Issue