aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net/NetworkUtils.cs
AgeCommit message (Collapse)Author
2025-04-08Fix negated IP addresses without subnet mask not being parsed correctly (#13854)Markus Prettner
2025-02-05Typognattu
Co-authored-by: Cody Robibero <cody@robibe.ro>
2025-02-04Fix subnet contains checkgnattu
We are still using `Subnet.Contains` a lot but that does not handle IPv4 mapped to IPv6 addresses at all. It was partially fixed by #12094 in local network checking, but it may not always happen on LAN. Also make all local network checking to use IsInLocalNetwork method instead of just performing `Subnet.Contains` which is not accurate. Filter out all link-local addresses for external interface matching.
2025-01-22Remove useless checks and dead codeBond_009
2023-11-16Use new IPNetwork.TryParse functionBond_009
2023-11-14Revert "Use System.Net.IPNetwork"Bond_009
This reverts commit 117d05d288da1d412159a29c0cb8d5c8259e48ae.
2023-11-14Fix warningsBond_009
2023-11-14Use System.Net.IPNetworkBond_009
2023-11-12Move network utilities to MediaBrowser.CommonPatrick Barron