10 references to KnownProxies
Microsoft.AspNetCore (1)
ForwardedHeadersOptionsSetup.cs (1)
31options.KnownProxies.Clear();
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersMiddleware.cs (2)
216var checkKnownIps = _options.KnownNetworks.Count > 0 || _options.KnownProxies.Count > 0; 398if (_options.KnownProxies.Contains(address))
Microsoft.AspNetCore.HttpOverrides.Tests (7)
ForwardedHeadersMiddlewareTest.cs (7)
122options.KnownProxies.Clear(); 233options.KnownProxies.Add(ip); 865options.KnownProxies.Clear(); 892Assert.Single(options.KnownProxies); 1015options.KnownProxies.Add(proxy); 1063options.KnownProxies.Clear(); 1105options.KnownProxies.Clear();