onion on http

main
Bob Mottram 2020-03-02 14:51:30 +00:00
parent 3c5b549db7
commit 30eb7bcd6d
2 changed files with 2 additions and 1 deletions

View File

@ -968,6 +968,7 @@ if args.actor:
if args.http or domain.endswith('.onion'): if args.http or domain.endswith('.onion'):
httpPrefix='http' httpPrefix='http'
port=80 port=80
useTor=True
else: else:
httpPrefix='https' httpPrefix='https'
port=443 port=443

View File

@ -67,7 +67,7 @@ def loadJsonOnionify(filename: str,domain: str,onionDomain: str,delaySec=2) -> {
with open(filename, 'r') as fp: with open(filename, 'r') as fp:
data=fp.read() data=fp.read()
if data: if data:
data=data.replace(domain,onionDomain) data=data.replace(domain,onionDomain).replace('https:','http:')
jsonObject=json.loads(data) jsonObject=json.loads(data)
break break
except: except: