changeset e7910c91b1ab in /home/hg/repos/gajim
author: Jefry Lagrange jefry.reyes@gmail.com branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=e7910c91b1ab description: allow to connect to network ip but not loopback. Fixes #7403
diffstat:
src/common/socks5.py | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r d6b1f702927d -r e7910c91b1ab src/common/socks5.py --- a/src/common/socks5.py Tue Oct 29 17:26:25 2013 +0100 +++ b/src/common/socks5.py Tue Oct 29 21:26:49 2013 +0000 @@ -116,13 +116,11 @@ 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: