feat(update): OTA 兜底发现与系统代理支持
- check_latest 加免 API 配额的兜底路径:api.github.com 被限流(60 次/ 小时/IP,共享出口 IP 实测已打满)时,跟踪 github.com/releases/latest 的 302 从最终 URL 提取 tag,下载与 .sha256 按命名约定构造;notes 置空、 大小置 0(进度未知、对账跳过),sha256 校验仍强制执行 - ureq 启用 win-system-proxy:Windows 系统代理注册表设置自动生效; HTTP(S)_PROXY 环境变量代理 ureq 默认就读取,无需配置 - 实测:github.com 直连与代理均可达(302 正常),api.github.com 直连 与代理出口 IP 的未认证配额均耗尽 —— 兜底路径为必需品而非锦上添花
This commit is contained in:
Generated
+12
-1
@@ -1679,7 +1679,7 @@ dependencies = [
|
||||
"rustc_version",
|
||||
"toml 1.1.6+spec-1.1.0",
|
||||
"vswhom",
|
||||
"winreg",
|
||||
"winreg 0.55.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -7890,6 +7890,7 @@ dependencies = [
|
||||
"ureq-proto",
|
||||
"utf8-zero",
|
||||
"webpki-roots",
|
||||
"winreg 0.56.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -9182,6 +9183,16 @@ dependencies = [
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "winreg"
|
||||
version = "0.56.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wio"
|
||||
version = "0.2.2"
|
||||
|
||||
Reference in New Issue
Block a user