1
0

allow more time to detect tor

This commit is contained in:
Sander van Grieken
2023-07-13 18:51:17 +02:00
parent 0d7ff92c43
commit 4900d01344

View File

@@ -1470,7 +1470,7 @@ def detect_tor_socks_proxy() -> Optional[Tuple[str, int]]:
def is_tor_socks_port(host: str, port: int) -> bool:
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.settimeout(0.1)
s.settimeout(1.0)
s.connect((host, port))
# mimic "tor-resolve 0.0.0.0".
# see https://github.com/spesmilo/electrum/issues/7317#issuecomment-1369281075