pub struct SandboxConfigUserPolicyNetwork {
pub allow_local_network: Option<bool>,
pub allow_outbound: Option<bool>,
pub proxy: Option<SandboxConfigUserPolicyNetworkProxy>,
}Expand description
Network rules to merge into the base policy.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§allow_local_network: Option<bool>Whether traffic to local/loopback addresses is allowed.
allow_outbound: Option<bool>Whether outbound network traffic is allowed at all.
proxy: Option<SandboxConfigUserPolicyNetworkProxy>HTTP proxy for sandboxed process traffic. Linux restricts egress to the proxy endpoint, requires that endpoint to be reachable over IPv4 (the [::] dual-stack wildcard is accepted and routed through the IPv4 gateway), and does not support proxy credentials. macOS relies on applications honoring proxy environment variables. Windows also configures a per-AppContainer WinHTTP proxy, but enforcement depends on the application’s networking stack. Configure supported credentials in the separate username and password fields. A credential-free http:// loopback URL uses the localhost proxy form, while an https:// or authenticated loopback URL uses the URL form.
Trait Implementations§
Source§impl Clone for SandboxConfigUserPolicyNetwork
impl Clone for SandboxConfigUserPolicyNetwork
Source§fn clone(&self) -> SandboxConfigUserPolicyNetwork
fn clone(&self) -> SandboxConfigUserPolicyNetwork
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more