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