fix encoding issue
This commit is contained in:
parent
7046cd0608
commit
8c7ee7a12b
|
@ -875,9 +875,9 @@ 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:
|
if self.file_props.is_a_proxy:
|
||||||
return hashlib.sha1('%s%s%s' % (self.sid,
|
return hashlib.sha1(('%s%s%s' % (self.sid,
|
||||||
self.file_props.proxy_sender, self.file_props.proxy_receiver)
|
self.file_props.proxy_sender, self.file_props.proxy_receiver)).\
|
||||||
).hexdigest()
|
encode('utf-8')).hexdigest()
|
||||||
return hashlib.sha1(('%s%s%s' % (self.sid, self.initiator,
|
return hashlib.sha1(('%s%s%s' % (self.sid, self.initiator,
|
||||||
self.target)).encode('utf-8')).hexdigest()
|
self.target)).encode('utf-8')).hexdigest()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue