mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
Enable sandbox PAC routing with respect_system_proxy
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user