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 return False
def _redirect_headers(self, redirect: str, cookie: str, def _redirect_headers(self, redirect: str, cookie: str,
callingDomain: str, httpRedirect=False) -> None: callingDomain: str, httpRedirect=True) -> None:
if '://' not in redirect: if '://' not in redirect:
print('REDIRECT ERROR: redirect is not an absolute url ' + print('REDIRECT ERROR: redirect is not an absolute url ' +
redirect) redirect)

View File

@ -374,10 +374,8 @@ if args.testsnetwork:
sys.exit() sys.exit()
httpPrefix = 'https' httpPrefix = 'https'
if args.http: if args.http or args.i2p:
httpPrefix = 'http' httpPrefix = 'http'
if args.i2p:
httpPrefix = 'i2p'
elif args.gnunet: elif args.gnunet:
httpPrefix = 'gnunet' httpPrefix = 'gnunet'
@ -1033,7 +1031,7 @@ if args.dat:
if args.hyper: if args.hyper:
httpPrefix = 'hyper' httpPrefix = 'hyper'
if args.i2p: if args.i2p:
httpPrefix = 'i2p' httpPrefix = 'http'
if args.actor: if args.actor:
originalActor = args.actor originalActor = args.actor
@ -1083,7 +1081,7 @@ if args.actor:
port = 80 port = 80
proxyType = 'tor' proxyType = 'tor'
elif domain.endswith('.i2p'): elif domain.endswith('.i2p'):
httpPrefix = 'i2p' httpPrefix = 'http'
port = 80 port = 80
proxyType = 'i2p' proxyType = 'i2p'
elif args.gnunet: elif args.gnunet: