mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 22:32:58 -04:00
Fix bug related to persistent addresses when using v2 onion services
This commit is contained in:
parent
eca1f9cc8d
commit
91b4c3cc00
1 changed files with 2 additions and 2 deletions
|
@ -494,7 +494,7 @@ class Onion(object):
|
||||||
# A new private key was generated and is in the Control port response.
|
# A new private key was generated and is in the Control port response.
|
||||||
if self.settings.get('save_private_key'):
|
if self.settings.get('save_private_key'):
|
||||||
if not self.settings.get('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:
|
if self.stealth:
|
||||||
# Similar to the PrivateKey, the Control port only returns the ClientAuth
|
# Similar to the PrivateKey, the Control port only returns the ClientAuth
|
||||||
|
@ -579,7 +579,7 @@ class Onion(object):
|
||||||
else:
|
else:
|
||||||
return (self.settings.get('socks_address'), self.settings.get('socks_port'))
|
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.
|
Helper function for determining if a key is RSA1024 (v2) or not.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue