From c4cb367e653a309355a018be4c9106dfde3a57ce Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 24 Jun 2011 19:00:53 +0000 Subject: [PATCH] looks nicer (though --tor is implicitly converted into --proxy) --- lib/controller/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index ad945eda4..363b91523 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -868,7 +868,7 @@ def checkNullConnection(): return kb.nullConnection is not None def checkConnection(suppressOutput=False): - if not conf.proxy: + if not any([conf.proxy, conf.tor]): try: socket.getaddrinfo(conf.hostname, None) except socket.gaierror: