changeset d24235f5c3e6 in /home/hg/repos/gajim

branches: 
details:http://hg.gajim.org/gajim?cmd=changeset;node=d24235f5c3e6
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 05980f31fed8 -r d24235f5c3e6 src/common/socks5.py
--- a/src/common/socks5.py      Sat Jul 06 21:27:30 2013 +0200
+++ b/src/common/socks5.py      Sun Jul 07 14:22:37 2013 +0200
@@ -871,6 +871,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)).hexdigest()
 
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to