From 076b2753e2378722c6278b907bb8b43ec667641b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 2 Feb 2021 12:25:30 +0000 Subject: [PATCH] Set port for onion or i2p --- epicyon.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/epicyon.py b/epicyon.py index cf1c313f1..b776e0bbd 100644 --- a/epicyon.py +++ b/epicyon.py @@ -868,7 +868,11 @@ configPort = getConfigParam(baseDir, 'port') if configPort: port = configPort else: - port = 8085 + if domain.endswith('.onion') or \ + domain.endswith('.i2p'): + port = 80 + else: + port = 443 configProxyPort = getConfigParam(baseDir, 'proxyPort') if configProxyPort: @@ -1615,8 +1619,8 @@ if args.addaccount: sys.exit() if domain.endswith('.onion') or \ domain.endswith('.i2p'): - port = 80 - httpPrefix = 'http' + port = 80 + httpPrefix = 'http' createPerson(baseDir, nickname, domain, port, httpPrefix, True, not args.noapproval, args.password.strip()) if os.path.isdir(baseDir + '/accounts/' + nickname + '@' + domain):