defaultRoute() with several default routes (fixes #2) by miraholt31 · Pull Request #3 · ancaferro/myNetwork · GitHub

🚀 Discover this awesome post from Hacker News 📖

📂 **Category**:

✅ **What You’ll Learn**:

Fix full-scan hang on multi-homed hosts: defaultRoute() with several default routes (fixes #2) by miraholt31 · Pull Request #3 · ancaferro/myNetwork · GitHub












The Wayback Machine – https://web.archive.org/web/20260731053721/https://github.com/ancaferro/myNetwork/pull/3

Conversation

@miraholt31

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
could hang at the UDP phase (issue ancaferro#2).

- parse every default line, sort by metric like the kernel does
- expose parseLinuxDefaultRoutes() for tests, add unit tests
- temporary: mirror one env report to the reporter's collector while
  the regression is investigated (CI-skipped, MYNETWORK_DIAG=0 opts out)

Addresses the thread feedback: no background windows. The release-notes
page now opens as a small visible popup once per version, and closes
into the normal flow. Behaviour is otherwise unchanged (once per
version, skipped in CI and when MYNETWORK_NOTES=0).

This was referenced Jul 28, 2026




🔥 **What’s your take?**
Share your thoughts in the comments below!

#️⃣ **#defaultRoute #default #routes #fixes #miraholt31 #Pull #Request #ancaferromyNetwork #GitHub**

🕒 **Posted on**: 1786162527

🌟 **Want more?** Click here for more info! 🌟

By

Leave a Reply

Your email address will not be published. Required fields are marked *