changeset dae8ab39771b in /home/hg/repos/gajim
author: Jefry Lagrange jefry.reyes@gmail.com branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=dae8ab39771b 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 3879dd76941e -r dae8ab39771b 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: