mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user