fix StateHashFile encoding
This commit is contained in:
parent
5861836852
commit
5e3805b567
@ -70,5 +70,5 @@ class StateHashFile(GenericTextFile):
|
|||||||
state_str = (self.save_ipv4 and addr_v4 or "") + (
|
state_str = (self.save_ipv4 and addr_v4 or "") + (
|
||||||
self.save_ipv6 and addr_v6 or ""
|
self.save_ipv6 and addr_v6 or ""
|
||||||
)
|
)
|
||||||
sha = hashlib.sha256(state_str.encode(encoding="utf-8"))
|
sha = hashlib.sha256(state_str.encode(encoding=self.encoding))
|
||||||
self.content = sha.hexdigest()
|
self.content = sha.hexdigest()
|
||||||
|
Loading…
Reference in New Issue
Block a user