windows: the kill switch holds to what is wanted on, and says what is in place

From the security review of 32ff264:
- Turning a system-wide AmneziaWG profile off lifted the whole kill switch,
  the TUN's protection too, through a request of the AmneziaWG scope. Now
  the profile only leaves the plan; lifting it all stays killswitch off
  (services scope).
- Which profiles count came from their tunnels' state this moment (one that
  crashed fell out: fail open), and one whose addresses did not read made
  the plan none. Now from intent (started at boot, or turned on), and one
  unread still holds, letting nothing through it.
- holding said what was meant, not what was in place; failed now says
  filters that did not go in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-28 00:21:37 +03:00
1 parent 32ff264c81
commit aa44527082
5 files changed
+70 -22

No files matched your search

+2
View File
@@ -1030,6 +1030,8 @@ async fn real_main() -> Result<()> {
ctl.print(&r);
} else if r["enabled"] != true {
println!("The kill switch is off (killSwitch.enable).");
} else if r["failed"] == true {
println!("The kill switch should hold, but its filters are not in place: see the service's log (proxy-ctl logs).");
} else if r["holding"] == true {
println!("The kill switch holds: what would leave past the tunnel is blocked.");
} else if r["lifted"] == true {