mirror of https://gitlab.com/bashrc2/epicyon
Don't attempt to proxy through tor if it isn't available
parent
0dee8649c3
commit
db98be75dd
|
@ -79,6 +79,10 @@ def htmlAccountInfo(cssCache: {}, translate: {},
|
||||||
infoForm += translate[msgStr1] + '</center><br><br>'
|
infoForm += translate[msgStr1] + '</center><br><br>'
|
||||||
|
|
||||||
proxyType = 'tor'
|
proxyType = 'tor'
|
||||||
|
if not os.path.isfile('/usr/bin/tor'):
|
||||||
|
proxyType = None
|
||||||
|
if domain.endswith('.i2p'):
|
||||||
|
proxyType = None
|
||||||
domainDict = getPublicPostInfo(None,
|
domainDict = getPublicPostInfo(None,
|
||||||
baseDir, searchNickname, searchDomain,
|
baseDir, searchNickname, searchDomain,
|
||||||
proxyType, searchPort,
|
proxyType, searchPort,
|
||||||
|
|
Loading…
Reference in New Issue