Enable sandbox PAC routing with respect_system_proxy

This commit is contained in:
canvrno-oai
2026-06-22 16:15:46 -07:00
parent 10704a0d27
commit 097602b11f

View File

@@ -3322,8 +3322,12 @@ impl Config {
Vec::new(),
)
};
if enable_network_proxy && permission_profile.network_sandbox_policy().is_enabled() {
if let Some(network_proxy) = network_proxy_toml_config(cfg.features.as_ref()) {
if (enable_network_proxy || respect_system_proxy)
&& permission_profile.network_sandbox_policy().is_enabled()
{
if enable_network_proxy
&& let Some(network_proxy) = network_proxy_toml_config(cfg.features.as_ref())
{
apply_network_proxy_feature_config(
&mut configured_network_proxy_config,
network_proxy,
@@ -4083,10 +4087,13 @@ impl Config {
cfg.permissions.as_ref(),
active_permission_profile.id.as_str(),
)?;
if self.features.enabled(Feature::NetworkProxy)
let enable_network_proxy = self.features.enabled(Feature::NetworkProxy);
if (enable_network_proxy || self.respect_system_proxy)
&& permission_profile.network_sandbox_policy().is_enabled()
{
if let Some(network_proxy) = network_proxy_toml_config(cfg.features.as_ref()) {
if enable_network_proxy
&& let Some(network_proxy) = network_proxy_toml_config(cfg.features.as_ref())
{
apply_network_proxy_feature_config(
&mut configured_network_proxy_config,
network_proxy,