changeset adfc282c1c6b in /home/hg/repos/gajim
branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=adfc282c1c6b description: fix connection to FT proxies. Fixes #7349
diffstat:
src/common/socks5.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r f670c41b22bc -r adfc282c1c6b src/common/socks5.py --- a/src/common/socks5.py Sun Jul 28 18:03:57 2013 +0200 +++ b/src/common/socks5.py Sun Jul 07 14:22:37 2013 +0200 @@ -874,6 +874,10 @@ """ Get sha of sid + Initiator jid + Target jid """ + if self.file_props.is_a_proxy: + return hashlib.sha1('%s%s%s' % (self.sid, + self.file_props.proxy_sender, self.file_props.proxy_receiver) + ).hexdigest() return hashlib.sha1(('%s%s%s' % (self.sid, self.initiator, self.target)).encode('utf-8')).hexdigest()