Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4cb367

Browse files
committed
looks nicer (though --tor is implicitly converted into --proxy)
1 parent aa83fe5 commit c4cb367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def checkNullConnection():
868868
return kb.nullConnection is not None
869869

870870
def checkConnection(suppressOutput=False):
871-
if not conf.proxy:
871+
if not any([conf.proxy, conf.tor]):
872872
try:
873873
socket.getaddrinfo(conf.hostname, None)
874874
except socket.gaierror:

0 commit comments

Comments
 (0)