9 references to KnownNetworks
Microsoft.AspNetCore (1)
ForwardedHeadersOptionsSetup.cs (1)
30options.KnownNetworks.Clear();
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersMiddleware.cs (2)
216var checkKnownIps = _options.KnownNetworks.Count > 0 || _options.KnownProxies.Count > 0; 402foreach (var network in _options.KnownNetworks)
Microsoft.AspNetCore.HttpOverrides.Tests (6)
ForwardedHeadersMiddlewareTest.cs (6)
123options.KnownNetworks.Clear(); 864options.KnownNetworks.Clear(); 891Assert.Single(options.KnownNetworks); 1022options.KnownNetworks.Add(new IPNetwork(networkIp, prefixLength)); 1064options.KnownNetworks.Clear(); 1106options.KnownNetworks.Clear();