From 526113708335fe6586d8b7ed3a4881d56e65409a Mon Sep 17 00:00:00 2001 From: Jefry Lagrange Date: Tue, 29 Oct 2013 21:26:49 +0000 Subject: [PATCH] allow to connect to network ip but not loopback. Fixes #7403 --- src/common/socks5.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/socks5.py b/src/common/socks5.py index 374b77493..504726a2b 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -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: