forked from indymedia/epicyon
i2p uses http prefix
parent
4ae51bda6e
commit
889356b0b1
|
@ -525,7 +525,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
return False
|
||||
|
||||
def _redirect_headers(self, redirect: str, cookie: str,
|
||||
callingDomain: str, httpRedirect=False) -> None:
|
||||
callingDomain: str, httpRedirect=True) -> None:
|
||||
if '://' not in redirect:
|
||||
print('REDIRECT ERROR: redirect is not an absolute url ' +
|
||||
redirect)
|
||||
|
|
|
@ -374,10 +374,8 @@ if args.testsnetwork:
|
|||
sys.exit()
|
||||
|
||||
httpPrefix = 'https'
|
||||
if args.http:
|
||||
if args.http or args.i2p:
|
||||
httpPrefix = 'http'
|
||||
if args.i2p:
|
||||
httpPrefix = 'i2p'
|
||||
elif args.gnunet:
|
||||
httpPrefix = 'gnunet'
|
||||
|
||||
|
@ -1033,7 +1031,7 @@ if args.dat:
|
|||
if args.hyper:
|
||||
httpPrefix = 'hyper'
|
||||
if args.i2p:
|
||||
httpPrefix = 'i2p'
|
||||
httpPrefix = 'http'
|
||||
|
||||
if args.actor:
|
||||
originalActor = args.actor
|
||||
|
@ -1083,7 +1081,7 @@ if args.actor:
|
|||
port = 80
|
||||
proxyType = 'tor'
|
||||
elif domain.endswith('.i2p'):
|
||||
httpPrefix = 'i2p'
|
||||
httpPrefix = 'http'
|
||||
port = 80
|
||||
proxyType = 'i2p'
|
||||
elif args.gnunet:
|
||||
|
|
Loading…
Reference in New Issue