mirror of https://gitlab.com/bashrc2/epicyon
Set port for onion or i2p
parent
c12e23f07a
commit
076b2753e2
10
epicyon.py
10
epicyon.py
|
@ -868,7 +868,11 @@ configPort = getConfigParam(baseDir, 'port')
|
||||||
if configPort:
|
if configPort:
|
||||||
port = configPort
|
port = configPort
|
||||||
else:
|
else:
|
||||||
port = 8085
|
if domain.endswith('.onion') or \
|
||||||
|
domain.endswith('.i2p'):
|
||||||
|
port = 80
|
||||||
|
else:
|
||||||
|
port = 443
|
||||||
|
|
||||||
configProxyPort = getConfigParam(baseDir, 'proxyPort')
|
configProxyPort = getConfigParam(baseDir, 'proxyPort')
|
||||||
if configProxyPort:
|
if configProxyPort:
|
||||||
|
@ -1615,8 +1619,8 @@ if args.addaccount:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
if domain.endswith('.onion') or \
|
if domain.endswith('.onion') or \
|
||||||
domain.endswith('.i2p'):
|
domain.endswith('.i2p'):
|
||||||
port = 80
|
port = 80
|
||||||
httpPrefix = 'http'
|
httpPrefix = 'http'
|
||||||
createPerson(baseDir, nickname, domain, port, httpPrefix,
|
createPerson(baseDir, nickname, domain, port, httpPrefix,
|
||||||
True, not args.noapproval, args.password.strip())
|
True, not args.noapproval, args.password.strip())
|
||||||
if os.path.isdir(baseDir + '/accounts/' + nickname + '@' + domain):
|
if os.path.isdir(baseDir + '/accounts/' + nickname + '@' + domain):
|
||||||
|
|
Loading…
Reference in New Issue