From db98be75ddbaadc47840f2037335754e9d00066c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 17 Dec 2020 11:02:52 +0000 Subject: [PATCH] Don't attempt to proxy through tor if it isn't available --- webapp_moderation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp_moderation.py b/webapp_moderation.py index 554d598a8..63889536b 100644 --- a/webapp_moderation.py +++ b/webapp_moderation.py @@ -79,6 +79,10 @@ def htmlAccountInfo(cssCache: {}, translate: {}, infoForm += translate[msgStr1] + '

' 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,