Open
Description
Description
When trying to use System.Net.IPNetwork
to replace Microsoft.AspNetCore.HttpOverrides.IPNetwork
, find that's not exactly the same
Reproduction Steps
sample
using AspIPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork;
using IPNetwork = System.Net.IPNetwork;
Console.WriteLine(AspIPNetwork.TryParse("127.0.0.1/8", out _));
Console.WriteLine(IPNetwork.TryParse("127.0.0.1/8", out _));
Expected behavior
output true
for both
Actual behavior
output true for Microsoft.AspNetCore.HttpOverrides.IPNetwork
but false for System.Net.IPNetwork
Regression?
No response
Known Workarounds
No response
Configuration
.NET 10 Preview 5
Other information
similar to #95321