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'):
|
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
|
||||||
|
|
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:
|
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:
|
||||||
|
|
Loading…
Reference in New Issue