From 1b803b7780fa7e5cb33fd24ec3bdf9750a5251d4 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sun, 7 Jul 2013 14:22:37 +0200
Subject: [PATCH] fix connection to FT proxies. Fixes #7349

---
 src/common/socks5.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/common/socks5.py b/src/common/socks5.py
index e0e9865c55..374b77493f 100644
--- a/src/common/socks5.py
+++ b/src/common/socks5.py
@@ -871,6 +871,10 @@ class Socks5:
         """
         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()
 
-- 
GitLab