Skip to content
Snippets Groups Projects
Commit 6e7f0f1b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 53ae48c6
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment