Network.cs Rework & Improvements

Mandatory information

  • NetIP Version: v0.1.0 → v0.2.2
  • Operating System Version: Windows 10

Summary

NetIP “guesses” the current state of a local adapter and if it’s the primary adapter used by Windows (ignoring the Metric value).

This result in inaccurate listing/primary state of local adapters in the NetworkPopup.

Steps to reproduce

N/A

Expected result

N/A

Current result

N/A

Relevant logs and/or screenshots

N/A

Additional context

Source & details: The Automatic Metric feature for IPv4 routes - Windows Server | Microsoft Learn

Possible fixes

The Network.cs class, which provide local adapters information to NetIP needs to be completely rewritten to follow the way Windows actually works with the Metric value of each adapter.

Bug validated.

Issue 15 on the repository tracker.