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

Skip to content

Commit 6b7920d

Browse files
committed
minor patch for --tor
1 parent 3c31ccd commit 6b7920d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

doc/THANKS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ Andres Riancho <[email protected]>
404404
Jamie Riden <[email protected]>
405405
for reporting a minor bug
406406

407+
Alexander Rigbo <[email protected]>
408+
for contributing a minor patch
409+
407410
Antonio Riva <[email protected]>
408411
for reporting a bug when running with python 2.5
409412

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,10 +1702,10 @@ def __setTorProxySettings():
17021702
logger.info(infoMsg)
17031703

17041704
found = None
1705-
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
17061705

17071706
for port in DEFAULT_TOR_PORTS:
17081707
try:
1708+
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
17091709
s.connect((LOCALHOST, port))
17101710
found = port
17111711
break

0 commit comments

Comments
 (0)