Skip to content

Commit 84a83c3

Browse files
committed
nix-web-monitor: bind to all interfaces by default
The 127.0.0.1 default made the UI unreachable over LAN/Tailscale without passing --host every time. WebTransport pins the cert by hash, so off-host names connect without a SAN match.
1 parent 62b0304 commit 84a83c3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • packages/nix-web-monitor/server/src

packages/nix-web-monitor/server/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ const KEEP_ALIVE: Duration = Duration::from_secs(3);
3939
)]
4040
#[allow(clippy::struct_field_names)] // `nix_args` is the wire-level name passed to `nix`; renaming would hurt the CLI help text.
4141
struct Args {
42-
/// Interface used by the web monitor.
43-
#[arg(long, default_value = "127.0.0.1")]
42+
/// Interface used by the web monitor. Defaults to all interfaces so the UI
43+
/// is reachable over LAN/Tailscale without a flag; the WebTransport identity
44+
/// already covers off-host names via cert-hash pinning.
45+
#[arg(long, default_value = "0.0.0.0")]
4446
host: String,
4547

4648
/// TCP port for the static UI and JSON endpoints.

0 commit comments

Comments
 (0)