mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-23 07:19:11 +00:00
Fix type error for private key loading
This commit is contained in:
parent
9bf2d96e60
commit
7c5dcac785
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ class ServicesGroup(object):
|
||||||
key = base64.b64decode(key)
|
key = base64.b64decode(key)
|
||||||
except binascii.Error:
|
except binascii.Error:
|
||||||
pass
|
pass
|
||||||
|
if isinstance(key, str):
|
||||||
|
key = key.encode('ascii')
|
||||||
self._onion.set_private_key(key)
|
self._onion.set_private_key(key)
|
||||||
self.imported_key = True
|
self.imported_key = True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue