更新wifi连接的代码,改三角形的连接为1秒超时

This commit is contained in:
gcw_4spBpAfv
2026-05-13 16:08:00 +08:00
parent 0a1c7cff5c
commit 4b94e03413
7 changed files with 97 additions and 165 deletions

View File

@@ -758,7 +758,12 @@ class OTAManager:
parsed = urlparse(url)
host = parsed.hostname
# MHTTPREQUEST 的路径必须包含 query七牛/ OSS 签名、token 多在 ? 后),否则易 403/HTMLheader 无 CL → no_header_or_total
path = parsed.path or "/"
if parsed.query:
path = f"{path}?{parsed.query}"
if parsed.fragment:
path = f"{path}#{parsed.fragment}"
if not host:
return False, "bad_url (no host)"