From 519cee15d102aa5dd901768f629ba2826506b175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=AC=E9=97=B4=E7=99=BD=E7=8C=AB?= <139044047+honmashironeko@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:31:46 +0800 Subject: [PATCH] Update --- ProxyCat-EN/ProxyCat-V1.7.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProxyCat-EN/ProxyCat-V1.7.py b/ProxyCat-EN/ProxyCat-V1.7.py index deae7cb..8a84ca7 100644 --- a/ProxyCat-EN/ProxyCat-V1.7.py +++ b/ProxyCat-EN/ProxyCat-V1.7.py @@ -452,12 +452,12 @@ async def check_proxy(proxy): return False async def check_http_proxy(proxy): - async with httpx.AsyncClient(proxies={'http': proxy}, timeout=10) as client: + async with httpx.AsyncClient(proxies={'http://': proxy}, timeout=10) as client: response = await client.get('http://www.baidu.com') return response.status_code == 200 async def check_https_proxy(proxy): - async with httpx.AsyncClient(proxies={'https': proxy}, timeout=10) as client: + async with httpx.AsyncClient(proxies={'https://': proxy}, timeout=10) as client: response = await client.get('https://www.baidu.com') return response.status_code == 200