feat(network-proxy): gate DNS endpoint by config

Add enable_dns to the managed network proxy config so DNS listener reservation and endpoint export are opt-in. Keep the Linux DNS bridge driven solely by the endpoint env, and simplify the Linux integration test by using the DNS wire-format parser instead of hand-rolled packet bytes.\n\nCo-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-07-09 12:38:28 -07:00
parent 2307518a48
commit e3615016fc
11 changed files with 88 additions and 49 deletions
+1
View File
@@ -1065,6 +1065,7 @@ strip_request_headers = ["authorization"]
enable_socks5: Some(false),
socks_url: None,
enable_socks5_udp: None,
enable_dns: None,
allow_upstream_proxy: Some(false),
dangerously_allow_non_loopback_proxy: None,
dangerously_allow_all_unix_sockets: None,
+1
View File
@@ -141,6 +141,7 @@ pub(crate) fn apply_network_proxy_feature_config(
enable_socks5: feature_config.enable_socks5,
socks_url: feature_config.socks_url.clone(),
enable_socks5_udp: feature_config.enable_socks5_udp,
enable_dns: feature_config.enable_dns,
allow_upstream_proxy: feature_config.allow_upstream_proxy,
dangerously_allow_non_loopback_proxy: feature_config.dangerously_allow_non_loopback_proxy,
dangerously_allow_all_unix_sockets: feature_config.dangerously_allow_all_unix_sockets,