Repository navigation
Description
Parent
Spec: #1 — Exposure as a set of listen interfaces (bind-hosts lane).
What to build
Replace the exposure on/off switch in Settings → Connections with a fork-only exposure preset control: Local only · Tailscale only · LAN · Custom. Custom reveals kind checkboxes (loopback locked on) and an IPv4 address list input. A read-only "Listening on" line shows the resolved addresses; resolver warnings render inline beneath it.
Any change that adds a non-loopback interface goes through the existing confirmation dialog, which also states that the backend will relaunch. The control reads selection, preset, resolved addresses, and warnings from the desktop network-access atom and never derives presets itself.
Exactly one edit lands in the upstream Connections settings file: the swap. UI copy uses fork vocabulary (exposure, listen interface, preset) and avoids "network access", "bind host", "mode".
Demo: pick Tailscale only → confirm → relaunch → "Listening on" shows the 100.x address; a LAN client is refused. Pick Custom and add an address not on this machine → the warning names it.
Acceptance criteria
- All four presets are selectable; the preset shown matches the persisted selection after relaunch and after an app restart.
- Custom: kinds toggle; loopback cannot be unchecked; an invalid IPv4 is rejected inline; the address list persists.
- The confirmation dialog appears only when widening beyond loopback, includes the relaunch notice, and cancel leaves state unchanged.
- "Listening on" and warnings reflect state; the tailnet-missing warning is visible when applicable.
- The Tailscale Serve toggle is disabled when
tailnetis not selected. - Atom test covers selection / preset / resolved / warnings; the component typechecks and lints; settings search still finds the Connections entries.
- The diff to the upstream Connections file is the single swap; everything else is in a fork-only component.
Blocked by
- Desktop exposure carries a listen-interface selection #7 — desktop exposure carries a listen-interface selection
Activity
Merge pull request #16 from Khang5687/feat/preset-control
Khang5687 commentedon Sep 16, 2026
Merged into fork-main via #16.