Don't attempt to proxy through tor if it isn't available

merge-requests/8/head
Bob Mottram 2020-12-17 11:02:52 +00:00
parent 0dee8649c3
commit db98be75dd
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ def htmlAccountInfo(cssCache: {}, translate: {},
infoForm += translate[msgStr1] + '</center><br><br>'
proxyType = 'tor'
if not os.path.isfile('/usr/bin/tor'):
proxyType = None
if domain.endswith('.i2p'):
proxyType = None
domainDict = getPublicPostInfo(None,
baseDir, searchNickname, searchDomain,
proxyType, searchPort,