changeset 82ca8c4a9a72 in /home/hg/repos/gajim
author: Jefry Lagrange jefry.reyes@gmail.com branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=82ca8c4a9a72 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 7667dcdbbdd1 -r 82ca8c4a9a72 src/common/socks5.py --- a/src/common/socks5.py Mon Sep 16 16:48:07 2013 +0200 +++ 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: