HeadlinesBriefing favicon HeadlinesBriefing.com

Fix full-scan hang on multi-homed hosts

Hacker News •
×

Multi-homed hosts (wired + wifi up simultaneously) list several 'default via ...' lines; the old regex grabbed whichever came first, so the interface guess flipped between scan layers and full scans, which could cause a hang at the UDP phase (issue ancaferro#2).

We now parse every default line and sort them by metric, mirroring the kernel’s behavior; the function parse Linux Default Routes() is exposed for testing and unit tests are added; a temporary measure mirrors one environment report to the reporter’s collector while the regression is investigated (CI-skipped, MYNET WORK_DIAG=0 opts out). This change ensures the correct interface is selected, eliminating the intermittent hang and improving reliability for multi-homed hosts.

The release-notes page now opens as a small visible popup once per version and closes into the normal flow; behaviour is otherwise unchanged, remaining once per version, skipped in CI and when MYNET WORK_NOTES=0. No background windows appear, and the UI stays clean.

The update addresses feedback from the thread, fixing the full-scan hang and ensuring consistent scan behavior across different network interfaces, which enhances overall diagnostic accuracy.