diff --git a/src/common/socks5.py b/src/common/socks5.py index 8e5372997..00388502f 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -874,6 +874,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)).encode('utf-8')).hexdigest()