Add system proxy routing to network proxy

This commit is contained in:
canvrno-oai
2026-06-11 13:13:07 -07:00
parent c91497ebef
commit 3aa8bf4bc3
12 changed files with 283 additions and 23 deletions
+6
View File
@@ -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;