Allow setting a 'fake' ClientAuth in local-only mode - which will help with tests

This commit is contained in:
Miguel Jacq 2021-05-06 15:06:36 +10:00
parent e4465435fa
commit 084b6c4867
2 changed files with 17 additions and 6 deletions

View file

@ -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(