forked from indymedia/epicyon
onion on http
parent
3c5b549db7
commit
30eb7bcd6d
|
@ -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
|
||||
|
|
2
utils.py
2
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:
|
||||
|
|
Loading…
Reference in New Issue