From 74d77aef3ee3096c547e6c824254e6bcc30f1f79 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 9 Jun 2020 13:07:43 +0100 Subject: [PATCH] gnunet prefix --- epicyon.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/epicyon.py b/epicyon.py index a8e0a4ea..46b0cce3 100644 --- a/epicyon.py +++ b/epicyon.py @@ -375,6 +375,10 @@ if args.testsnetwork: httpPrefix = 'https' if args.http: httpPrefix = 'http' +if args.i2p: + httpPrefix = 'i2p' +elif args.gnunet: + httpPrefix = 'gnunet' baseDir = args.baseDir if baseDir.endswith('/'): @@ -1076,14 +1080,18 @@ if args.actor: domain = args.actor.split('@')[1] domain = domain.replace('\n', '').replace('\r', '') cachedWebfingers = {} - if args.http or \ - domain.endswith('.onion') or domain.endswith('.i2p'): + if args.http or domain.endswith('.onion'): httpPrefix = 'http' port = 80 - if domain.endswith('.onion'): - proxyType = 'tor' - elif domain.endswith('.i2p'): - proxyType = 'i2p' + proxyType = 'tor' + elif domain.endswith('.i2p'): + httpPrefix = 'i2p' + port = 80 + proxyType = 'i2p' + elif args.gnunet: + httpPrefix = 'gnunet' + port = 80 + proxyType = 'gnunet' else: httpPrefix = 'https' port = 443