Filter invalid IPs on external interface matching (#11766)

This commit is contained in:
gnattu
2024-05-25 23:44:03 +08:00
committed by GitHub
parent ef985896e2
commit 2eece01acc
2 changed files with 21 additions and 1 deletions

View File

@@ -58,6 +58,11 @@ public static class NetworkConstants
/// </summary>
public static readonly IPNetwork IPv4RFC1918PrivateClassC = new IPNetwork(IPAddress.Parse("192.168.0.0"), 16);
/// <summary>
/// IPv4 Link-Local as defined in RFC 3927.
/// </summary>
public static readonly IPNetwork IPv4RFC3927LinkLocal = new IPNetwork(IPAddress.Parse("169.254.0.0"), 16);
/// <summary>
/// IPv6 loopback as defined in RFC 4291.
/// </summary>