Skip to content

Add Wi-Fi auto-pause keyed on default-gateway MAC (permission-free)#184

Open
7onnie wants to merge 5 commits into
ts1:masterfrom
7onnie:feature/wifi-auto-pause-gateway-mac
Open

Add Wi-Fi auto-pause keyed on default-gateway MAC (permission-free)#184
7onnie wants to merge 5 commits into
ts1:masterfrom
7onnie:feature/wifi-auto-pause-gateway-mac

Conversation

@7onnie

@7onnie 7onnie commented Jun 18, 2026

Copy link
Copy Markdown

Implements #142: completely pause auto-lock/unlock on user-designated home networks, identified permission-free by the default gateway's MAC (route/ping/arp) — no SSID, no Location permission. Network changes are detected via SCDynamicStore; resolution runs off the main queue; pause state is sticky across transient failures (and seeds to paused at launch so the first async resolution can't let an unlock slip through). Pure parsing/state logic is covered by standalone tests in Tests/.

Jonas Haderer added 5 commits June 18, 2026 22:52
… tests

normalizeMAC guards each octet with isHexDigit so a leading sign (which Swift's
Int(_:radix:) would otherwise accept) cannot produce a malformed non-nil MAC.
…MAC resolver

Pause state seeds to true so the asynchronous first gateway resolution at launch cannot
let an auto-unlock slip through on a disabled network; it relaxes to active only once a
non-allowlisted gateway MAC is confirmed. Notification keys are registered in the keys
slot (not patterns).
… Network' menu

pausedByNetwork seeds to true so no auto-lock/unlock can fire before the first
asynchronous gateway resolution completes at launch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant