Don't use https when sending to onion address

main
Bob Mottram 2020-03-03 19:20:26 +00:00
parent 21f92dc268
commit d9d702ce6e
1 changed files with 3 additions and 0 deletions

View File

@ -1535,6 +1535,9 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \
return 8
withDigest=True
if toDomain.endswith('.onion'):
httpPrefix='http'
sharedInbox=False
if toNickname=='inbox':
# shared inbox actor on @domain@domain