diff options
author | Micah Lee <micah@micahflee.com> | 2018-11-25 13:14:56 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2018-11-25 13:14:56 -0800 |
commit | 5f011e9ed652ab66b5449734e73478de9c51f7e8 (patch) | |
tree | 4fbcc5c85901a746d9ca5a0ba9ca19eeb251bfe7 | |
parent | e29c0e7b69b7f9c5fcdf8489f97c8dfd8554311d (diff) | |
download | onionshare-5f011e9ed652ab66b5449734e73478de9c51f7e8.tar.gz onionshare-5f011e9ed652ab66b5449734e73478de9c51f7e8.zip |
Fix bug related to persistent addresses when using v2 onion services
-rw-r--r-- | onionshare/onion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/onionshare/onion.py b/onionshare/onion.py index 7122c208..6066f059 100644 --- a/onionshare/onion.py +++ b/onionshare/onion.py @@ -494,7 +494,7 @@ class Onion(object): # A new private key was generated and is in the Control port response. if self.settings.get('save_private_key'): if not self.settings.get('private_key'): - self.settings.set('private_key', key_content) + self.settings.set('private_key', res.private_key) if self.stealth: # Similar to the PrivateKey, the Control port only returns the ClientAuth @@ -579,7 +579,7 @@ class Onion(object): else: return (self.settings.get('socks_address'), self.settings.get('socks_port')) - def is_v2_key(key): + def is_v2_key(self, key): """ Helper function for determining if a key is RSA1024 (v2) or not. """ |