mirror of
https://github.com/openai/codex.git
synced 2026-11-12 21:20:34 +00:00
Add system proxy routing to network proxy
This commit is contained in:
@@ -546,6 +546,12 @@ impl NetworkProxyState {
|
||||
Ok(guard.config.network.allow_upstream_proxy)
|
||||
}
|
||||
|
||||
pub async fn upstream_proxy_mode(&self) -> Result<crate::config::UpstreamProxyMode> {
|
||||
self.reload_if_needed().await?;
|
||||
let guard = self.state.read().await;
|
||||
Ok(guard.config.network.upstream_proxy_mode)
|
||||
}
|
||||
|
||||
pub async fn allow_local_binding(&self) -> Result<bool> {
|
||||
self.reload_if_needed().await?;
|
||||
let guard = self.state.read().await;
|
||||
|
||||
Reference in New Issue
Block a user