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