From 2371be839f9ae46dd2b0529a2d1598f2b6270ab1 Mon Sep 17 00:00:00 2001 From: Tony <68118705+Legend-Master@users.noreply.github.com> Date: Tue, 4 Aug 2026 16:37:00 +0800 Subject: [PATCH] feat(updater): add `system-proxy` feature (#3526) * feat(updater): add `system-proxy` feature * enable by default --- .changes/updater-system-proxy.md | 6 ++++++ plugins/updater/Cargo.toml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changes/updater-system-proxy.md diff --git a/.changes/updater-system-proxy.md b/.changes/updater-system-proxy.md new file mode 100644 index 000000000..d5dda5657 --- /dev/null +++ b/.changes/updater-system-proxy.md @@ -0,0 +1,6 @@ +--- +"updater": minor +"updater-js": minor +--- + +Added `system-proxy` (enabled by default) feature flag to control `reqwest/system-proxy` feature (Use Windows and macOS system proxy settings automatically) diff --git a/plugins/updater/Cargo.toml b/plugins/updater/Cargo.toml index 5dddf2260..f1cf20bc0 100644 --- a/plugins/updater/Cargo.toml +++ b/plugins/updater/Cargo.toml @@ -75,8 +75,9 @@ flate2 = "1" osakit = { version = "0.3", features = ["full"] } [features] -default = ["rustls-tls", "zip"] +default = ["rustls-tls", "system-proxy", "zip"] zip = ["dep:zip", "dep:tar", "dep:flate2"] native-tls = ["reqwest/native-tls"] native-tls-vendored = ["reqwest/native-tls-vendored"] rustls-tls = ["reqwest/rustls-no-provider", "dep:rustls"] +system-proxy = ["reqwest/system-proxy"]