vortix 0.4.2

Terminal UI for WireGuard and OpenVPN with real-time telemetry and leak guarding
Documentation
//! Windows kill-switch stub (plan 008 U4).
//!
//! Real impl would drive `netsh advfirewall` or the Windows Filtering
//! Platform via `windows-sys`. Today this returns `Ok(())` from
//! `enable_blocking_multi` (no-op stub) so the rest of the engine can
//! exercise its rule-synthesis path under tests and on developer
//! workstations.

use crate::vortix_core::ports::killswitch::{
    ActiveTunnelInfo, Killswitch, KillswitchError, Result,
};

#[derive(Debug, Clone, Default)]
pub struct WindowsFirewall;

impl Killswitch for WindowsFirewall {
    fn enable_blocking_multi(_active: &[ActiveTunnelInfo]) -> Result<()> {
        // Stub — Windows backend is plan 008 U4 work. Returning Ok lets
        // the engine progress on Windows; no actual rules are installed.
        Ok(())
    }

    fn disable_blocking() -> Result<()> {
        Err(KillswitchError::CommandFailed(
            "Windows kill switch is not implemented yet (plan 008 U4 stub)".into(),
        ))
    }
}