Skip to content
Snippets Groups Projects
Commit 1b803b77 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix connection to FT proxies. Fixes #7349

parent 44513b91
No related branches found
No related tags found
No related merge requests found
...@@ -871,6 +871,10 @@ class Socks5: ...@@ -871,6 +871,10 @@ class Socks5:
""" """
Get sha of sid + Initiator jid + Target jid 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, return hashlib.sha1('%s%s%s' % (self.sid, self.initiator,
self.target)).hexdigest() self.target)).hexdigest()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment