From f997befce9a55838c478d7d4f4f005ea438e09c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E4=BF=9D=E7=BD=97?= <535883852@qq.com> Date: Wed, 20 May 2026 14:34:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=9D=99=E6=80=81?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy/proxy_ip_pool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/proxy_ip_pool.py b/proxy/proxy_ip_pool.py index 4970b28..95289dc 100644 --- a/proxy/proxy_ip_pool.py +++ b/proxy/proxy_ip_pool.py @@ -200,9 +200,10 @@ async def create_ip_pool(ip_pool_count: int, enable_validate_ip: bool) -> ProxyI :param enable_validate_ip: Whether to enable IP proxy validation :return: """ + is_static = config.IP_PROXY_PROVIDER_NAME == "static" pool = ProxyIpPool( ip_pool_count=ip_pool_count, - enable_validate_ip=enable_validate_ip, + enable_validate_ip=False if is_static else enable_validate_ip, ip_provider=IpProxyProvider.get(config.IP_PROXY_PROVIDER_NAME), ) await pool.load_proxies()