Set port when creating new account

main
Bob Mottram 2021-02-02 11:47:49 +00:00
parent 11a9cea1a2
commit c12e23f07a
1 changed files with 4 additions and 0 deletions

View File

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