Several WebProxy-related fixes (#50368)
authorStephen Toub <stoub@microsoft.com>
Tue, 30 Mar 2021 00:40:33 +0000 (20:40 -0400)
committerGitHub <noreply@github.com>
Tue, 30 Mar 2021 00:40:33 +0000 (20:40 -0400)
commita221324771e61a33ef81b319f75d30d7291d87e4
tree262dd52ae2eaece66aa2f4c94c5958f92282580c
parent29e8a13cc5b8756378e016bf97ff0697deb1a639
Several WebProxy-related fixes (#50368)

- Split browser from non-browser to avoid CA1416 suppressions, UnsupportedOSPlatform attributes, and PNSEs when used from browser
- Cache domain name and local addresses for use in IsLocal, along with clearing of the caches upon network change detection
- Removing redundant IPAddress.IsLoopback check that's covered by previous Uri.IsLoopback check
- Change IsMatchInBypassList to use string interpolation, such that the non-default port case will get better implicitly with C# 10 interpolated string improvements
src/libraries/System.Net.WebProxy/src/System.Net.WebProxy.csproj
src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.Browser.cs [new file with mode: 0644]
src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.NonBrowser.cs [new file with mode: 0644]
src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.cs