minor patch for --tor

This commit is contained in:
Miroslav Stampar
2011-10-27 10:52:06 +00:00
parent 3c31ccd16e
commit 6b7920d89a
2 changed files with 4 additions and 1 deletions

View File

@@ -1702,10 +1702,10 @@ def __setTorProxySettings():
logger.info(infoMsg)
found = None
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
for port in DEFAULT_TOR_PORTS:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((LOCALHOST, port))
found = port
break