mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 06:26:10 -04:00
Allow setting a 'fake' ClientAuth in local-only mode - which will help with tests
This commit is contained in:
parent
e4465435fa
commit
084b6c4867
2 changed files with 17 additions and 6 deletions
|
@ -74,6 +74,8 @@ class OnionShare(object):
|
|||
|
||||
if self.local_only:
|
||||
self.onion_host = f"127.0.0.1:{self.port}"
|
||||
if mode_settings.get("general", "client_auth"):
|
||||
self.auth_string = "E2GOT5LTUTP3OAMRCRXO4GSH6VKJEUOXZQUC336SRKAHTTT5OVSA"
|
||||
return
|
||||
|
||||
self.onion_host = self.onion.start_onion_service(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue