diff --git a/xmrnodes/helpers.py b/xmrnodes/helpers.py index 3449bfe..419ed76 100644 --- a/xmrnodes/helpers.py +++ b/xmrnodes/helpers.py @@ -15,12 +15,13 @@ from xmrnodes import config def make_request(url: str, path="/get_info", data=None): headers = {"Origin": "https://monero.fail"} if is_onion(url): - proxies = {"http": f"socks5h://{config.TOR_HOST}:{config.TOR_PORT}"} - timeout = 18 + _p = f"socks5h://{config.TOR_HOST}:{config.TOR_PORT}" + proxies = {"http": p, "https": p} + timeout = 30 else: proxies = None - timeout = 6 - r = r_get(url + path, timeout=timeout, proxies=proxies, json=data, headers=headers) + timeout = 10 + r = r_get(url + path, timeout=timeout, proxies=proxies, json=data, headers=headers, verify=False) r.raise_for_status() return r