Skip to content
Snippets Groups Projects
Commit 52611370 authored by zimio's avatar zimio
Browse files

allow to connect to network ip but not loopback. Fixes #7403

parent 89d55341
No related branches found
No related tags found
No related merge requests found
......@@ -116,13 +116,11 @@ class SocksQueue:
self.on_failure[sid] = on_failure
file_props = FilesProp.getFileProp(account, sid)
file_props.failure_cb = on_failure
con = gajim.connections[account]
streamhosts_to_test = []
# Remove local IPs to not connect to ourself
for streamhost in file_props.streamhosts:
if streamhost['host'] == '127.0.0.1' or \
streamhost['host'] == '::1' or \
streamhost['host'] == con.peerhost[0]:
streamhost['host'] == '::1'
continue
streamhosts_to_test.append(streamhost)
if not streamhosts_to_test:
......
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