From c12e23f07adda52238b6b1bf44187aeae3427940 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 2 Feb 2021 11:47:49 +0000 Subject: [PATCH] Set port when creating new account --- epicyon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/epicyon.py b/epicyon.py index e5f3ecbf4..cf1c313f1 100644 --- a/epicyon.py +++ b/epicyon.py @@ -1613,6 +1613,10 @@ if args.addaccount: if os.path.isdir(baseDir + '/deactivated/' + nickname + '@' + domain): print('Account is deactivated') sys.exit() + if domain.endswith('.onion') or \ + domain.endswith('.i2p'): + 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):