mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 06:55:09 -04:00
Gracefully avoid sending the client_auth_v3 argument to Stem's create_ephemeral_hidden_service() if the version of Stem we're on does not yet support it
This commit is contained in:
parent
80cc1f43e8
commit
e4465435fa
1 changed files with 17 additions and 8 deletions
|
@ -663,6 +663,15 @@ class Onion(object):
|
||||||
client_auth_v3_pub_key = None
|
client_auth_v3_pub_key = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if not self.supports_stealth:
|
||||||
|
res = self.c.create_ephemeral_hidden_service(
|
||||||
|
{80: port},
|
||||||
|
await_publication=await_publication,
|
||||||
|
basic_auth=None,
|
||||||
|
key_type=key_type,
|
||||||
|
key_content=key_content,
|
||||||
|
)
|
||||||
|
else:
|
||||||
res = self.c.create_ephemeral_hidden_service(
|
res = self.c.create_ephemeral_hidden_service(
|
||||||
{80: port},
|
{80: port},
|
||||||
await_publication=await_publication,
|
await_publication=await_publication,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue