diff --git a/epicyon.py b/epicyon.py index 24f65c4b..177974c5 100644 --- a/epicyon.py +++ b/epicyon.py @@ -968,6 +968,7 @@ if args.actor: if args.http or domain.endswith('.onion'): httpPrefix='http' port=80 + useTor=True else: httpPrefix='https' port=443 diff --git a/utils.py b/utils.py index 1ee9cae3..ac24d21e 100644 --- a/utils.py +++ b/utils.py @@ -67,7 +67,7 @@ def loadJsonOnionify(filename: str,domain: str,onionDomain: str,delaySec=2) -> { with open(filename, 'r') as fp: data=fp.read() if data: - data=data.replace(domain,onionDomain) + data=data.replace(domain,onionDomain).replace('https:','http:') jsonObject=json.loads(data) break except: