Skip to main content

wireguard_env_from_state

Function wireguard_env_from_state 

Source
pub fn wireguard_env_from_state(
    state_dir: &Path,
    state: &EnrolledState,
    interface: &str,
) -> Vec<(String, String)>
Expand description

Environment the kernel WireGuard bring-up reads, from the enrolled state. Only variables that are unset are filled. Returns the call-home address when the answer carries one.