i2p uses http prefix

main
Bob Mottram 2020-06-19 12:12:26 +01:00
parent 4ae51bda6e
commit 889356b0b1
2 changed files with 4 additions and 6 deletions

View File

@ -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)

View File

@ -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: