diff --git a/proxy/endpoints.py b/proxy/endpoints.py index ec2feb7..3166380 100644 --- a/proxy/endpoints.py +++ b/proxy/endpoints.py @@ -86,7 +86,7 @@ def to_dict(self): def url_ok(url) -> bool: try: - r = requests.head(url) + r = requests.head(url, timeout=10) return bool(r.status_code) except requests.exceptions.ConnectionError: return False