Add: flag to make watch keep running
This commit is contained in:
@@ -42,9 +42,9 @@ This document lists CLI commands and supported flags. Output defaults to text; u
|
||||
## dns
|
||||
- `dns query <domain> <type>` flags: `--server <ip[:port]>`, `--transport <udp|tcp|dot|doh>`, `--tls-name <name>`, `--socks5 <url>`, `--prefer-ipv4`, `--timeout-ms <n>`
|
||||
- `dns detect <domain>` flags: `--servers <csv>`, `--transport <udp|tcp|dot|doh>`, `--tls-name <name>`, `--socks5 <url>`, `--prefer-ipv4`, `--repeat <n>`, `--timeout-ms <n>`
|
||||
- `dns watch` flags: `--duration <Ns|Nms>`, `--iface <name>`, `--filter <pattern>`
|
||||
- `dns watch` flags: `--duration <Ns|Nms>`, `--follow` (run until Ctrl-C), `--iface <name>`, `--filter <pattern>`
|
||||
- `dns leak status` flags: `--profile <full-tunnel|proxy-stub|split>`, `--policy <path>`
|
||||
- `dns leak watch` flags: `--duration <Ns|Nms>`, `--iface <name>`, `--profile <full-tunnel|proxy-stub|split>`, `--policy <path>`, `--privacy <full|redacted|minimal>`, `--out <path>`, `--summary-only`, `--iface-diag` (list capture-capable interfaces)
|
||||
- `dns leak watch` flags: `--duration <Ns|Nms>`, `--follow` (run until Ctrl-C), `--iface <name>`, `--profile <full-tunnel|proxy-stub|split>`, `--policy <path>`, `--privacy <full|redacted|minimal>`, `--out <path>`, `--summary-only`, `--iface-diag` (list capture-capable interfaces)
|
||||
- `dns leak report` flags: `<path>`, `--privacy <full|redacted|minimal>`
|
||||
|
||||
## http
|
||||
|
||||
@@ -156,6 +156,11 @@ Add under `dns` command group:
|
||||
- summary report (human) by default
|
||||
- `--json` returns structured report with events list
|
||||
|
||||
`--follow` keeps the watch running by resolving the duration to a large
|
||||
placeholder (one year in milliseconds) and then racing the watch against
|
||||
`tokio::signal::ctrl_c()`; Ctrl-C returns early with a clean exit code so the
|
||||
outer loop stops.
|
||||
|
||||
## 9) Recommended incremental build plan
|
||||
|
||||
Phase 1 (core passive detection):
|
||||
|
||||
@@ -24,6 +24,8 @@ This document tracks the current DNS leak detector implementation against the de
|
||||
- `dns leak watch`
|
||||
- `dns leak report`
|
||||
- `dns leak watch --iface-diag` (diagnostics for capture-capable interfaces).
|
||||
- `dns leak watch --follow` runs until Ctrl-C by combining a long duration with
|
||||
a `tokio::signal::ctrl_c()` early-exit path.
|
||||
- Interface selection:
|
||||
- per-interface open timeout to avoid capture hangs
|
||||
- ordered scan prefers non-loopback + named ethernet/wlan and interfaces with IPs
|
||||
|
||||
Reference in New Issue
Block a user