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

+4 -1
View File
@@ -70,7 +70,9 @@ pub fn render(model: &Entity<Model>, _: &mut Window, cx: &mut Context<AppView>)
.child(fact(tr("Outbound"), p["pinned"].as_str().map(|t| trf("{} (pinned)", &[&t])).unwrap_or_else(|| trf("{} selection", &[&p["selection"].as_str().unwrap_or("?")])), cx))
.when(s["killSwitch"]["enabled"] == true, |d| {
let k = &s["killSwitch"];
let (state, action, on) = if k["holding"] == true {
let (state, action, on) = if k["failed"] == true {
(tr("not in place: its filters failed (the Logs say why)"), tr("Lift"), false)
} else if k["holding"] == true {
(tr("holding: what would leave past the tunnel is blocked"), tr("Lift"), false)
} else if k["lifted"] == true {
(tr("lifted until a tunnel is turned on"), tr("Hold again"), true)
@@ -224,6 +226,7 @@ pub const RU: &[(&str, &str)] = &[
("lifted until a tunnel is turned on", "снят до включения туннеля"),
("nothing to hold: no global tunnel is on", "не нужен: ни один общий туннель не включён"),
("Lift", "Снять"),
("not in place: its filters failed (the Logs say why)", "не действует: фильтры не установлены (причина — в «Журналах»)"),
("Hold again", "Включить снова"),
("The kill switch holds again", "Kill switch снова действует"),
("The kill switch is lifted", "Kill switch снят"),