From a9bdd048f5710ee7c0f89cbaae80454b7cb64749 Mon Sep 17 00:00:00 2001 From: zhuhjay Date: Sat, 7 Nov 2026 18:24:00 +0800 Subject: [PATCH] =?UTF-8?q?chore(cmcc):=20=E9=9D=99=E9=9F=B3=20InsecureReq?= =?UTF-8?q?uestWarning=EF=BC=88legacy=20=E6=B1=A0=20CERT=5FNONE=20?= =?UTF-8?q?=E6=98=AF=E6=9C=89=E6=84=8F=E8=A1=8C=E4=B8=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmcc/scrip_cmcc_mark.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmcc/scrip_cmcc_mark.py b/cmcc/scrip_cmcc_mark.py index 7d01dd3..b499b1a 100644 --- a/cmcc/scrip_cmcc_mark.py +++ b/cmcc/scrip_cmcc_mark.py @@ -51,6 +51,9 @@ from datetime import datetime, timedelta, timezone import requests import urllib3 +# 静音 InsecureRequestWarning([A] 专用 legacy-SSL 池本就 CERT_NONE,刷屏无信息量) +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + # ---------------------------------------------------------------- SSL 兼容 # 中国移动 client.app.coc.10086.cn 用 legacy TLS renegotiation(OpenSSL 3.x 默认拒: # UNSAFE_LEGACY_RENEGOTIATION_DISABLED,青龙容器 Python3.11 实测命中)。