You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(minimald): min ls shows port 0 for the interim answerer with --zone-answerer-port 0 #3863
With minimald run --zone-answerer-port 0 on a native host with no minzoned service installed, the interim answerer binds a port that the OS chooses. But min ls prints DNS SERVICE: listening on 127.0.0.1:0 (UDP) for *.min.internal, so a reader points the host resolver at port 0.
Repro: run minimald run --zone-answerer-port 0 on a host without minzoned, then run min ls.
Where
crates/minimald/src/net/answerer.rs:1903 binds (127.0.0.1, hook_port), so port 0 asks the OS for a port.
crates/minimald/src/net/answerer.rs:2169 records state.set_zone_answerer_port(hook_port), the configured value, not the socket's bound port. :2115 also sets Holder { port: hook_port }.
The fix is to record the bound port, or to refuse 0 for this flag before the answerer starts.
Found by
The docs pass, on #3858 (CodeRabbit) and confirmed for #3859. docs/reference/cli-minimald.md lists it under Known issues.
Activity