pub fn enable(
leak: bool,
local: bool,
ipv4: Option<&str>,
verbose: Verbosity,
) -> Result<()>Expand description
Enable the VPN kill switch
ยงErrors
Returns an error if:
- Not running with root privileges
- VPN gateway address cannot be detected (when not provided)
- Firewall rules cannot be generated or applied