Skip to main content

check_network_mode

Function check_network_mode 

Source
pub fn check_network_mode(config: &TaskConfig) -> Result<(), String>
Expand description

Validates network configuration against the environment and active flags.

Refuses --network=off when running with --container, when --sandbox=off, when the sandbox is unavailable, or on Linux when landlock_abi() < 4.