This is primarily a cleanup / update of getLocalNetworkInterface that does the following:
Cleanup the logic a bit and use modern JS/TS semantics.
Address an edge case reported by @donavanbecker that is currently impacting beta versions of macOS related to strange forms of IPv4-mapped IPv6 addresses that can occur.
:bulb: Proposed solution
Describe the proposed solution and changes. How does it affect the project? How does it affect the internal structure (e.g., refactorings)?
:gear: Release Notes
Modernize getLocalNetworkInterface and address edge cases.
:heavy_plus_sign: Additional Information
If applicable, provide additional context in this section.
:recycle: Current situation
This is primarily a cleanup / update of getLocalNetworkInterface that does the following:
:bulb: Proposed solution
Describe the proposed solution and changes. How does it affect the project? How does it affect the internal structure (e.g., refactorings)?
:gear: Release Notes
Modernize getLocalNetworkInterface and address edge cases.
:heavy_plus_sign: Additional Information
If applicable, provide additional context in this section.
Testing
Reviewer Nudging
@donavanbecker