Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix standalone network proxy policy initialization (#46578)

Eric Traut29a57861e31a
diff --git a/codex-rs/network-proxy/src/main.rs b/codex-rs/network-proxy/src/main.rs
index 8cbf9b4c46..0f6f9b7657 100644
--- a/codex-rs/network-proxy/src/main.rs
+++ b/codex-rs/network-proxy/src/main.rs
@@ -12,6 +12,7 @@ use codex_network_proxy::NetworkProxy;
use codex_network_proxy::NetworkProxyConfig;
use codex_network_proxy::NetworkProxyConstraints;
use codex_network_proxy::NetworkProxyState;
+use codex_network_proxy::Platform;
use codex_network_proxy::build_config_state;
use serde::Deserialize;
use std::path::PathBuf;
@@ -92,8 +93,12 @@ async fn main() -> Result<()> {
"standalone network proxy requires network.enabled = true"
);
- let config_state = build_config_state(config.network, NetworkProxyConstraints::default())
- .context("failed to initialize network proxy policy")?;
+ let config_state = build_config_state(
+ config.network,
+ NetworkProxyConstraints::default(),
+ Platform::native(),
+ )
+ .context("failed to initialize network proxy policy")?;
let reloader = Arc::new(StaticConfigReloader {
state: config_state.clone(),
});