do not send ::1 as peer address when sending a file. Fixes #8191
This commit is contained in:
parent
8326e56793
commit
2ab937e846
|
@ -198,7 +198,8 @@ 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'):
|
if not addr in hosts and not addr.startswith('127') and \
|
||||||
|
addr != '::1':
|
||||||
c = {'host': addr,
|
c = {'host': addr,
|
||||||
'candidate_id': self.connection.connection.getAnID(),
|
'candidate_id': self.connection.connection.getAnID(),
|
||||||
'port': port,
|
'port': port,
|
||||||
|
|
Loading…
Reference in New Issue