Check that onion domain has been given

merge-requests/6/head
Bob Mottram 2020-03-02 13:35:24 +00:00
parent c7f6a49cf9
commit b44d364449
1 changed files with 3 additions and 2 deletions

View File

@ -190,6 +190,7 @@ def getPersonPubKey(baseDir: str,session,personUrl: str, \
if debug:
print('DEBUG: Obtaining public key for '+personUrl)
personDomain=domain
if onionDomain:
if '.onion/' in personUrl:
personDomain=onionDomain
asHeader = {