Windows 0.3.1 clean monitor source delta; no private history or other platform changes
This commit is contained in:
@@ -12,11 +12,11 @@ internal static class PlatformBootstrapTransportSelfTest
|
||||
using var handler = PlatformBootstrapTransport.CreateHandler();
|
||||
checks.Add(!handler.UseProxy && !handler.AllowAutoRedirect && !handler.UseCookies);
|
||||
checks.Add(handler.SslOptions.RemoteCertificateValidationCallback is null);
|
||||
PlatformBootstrapTransport.ValidateRequest(new Uri("https://vpn.toplc.cn/api/v1/client/login/"));
|
||||
foreach (var uri in new[] { "http://vpn.toplc.cn/", "https://vpn.toplc.cn:444/", "https://192.0.2.1/",
|
||||
"https://other.invalid/", "https://vpn.toplc.cn.evil.invalid/", "https://user@vpn.toplc.cn/" })
|
||||
PlatformBootstrapTransport.ValidateRequest(new Uri("https://vpn.example.invalid/api/v1/client/login/"));
|
||||
foreach (var uri in new[] { "http://vpn.example.invalid/", "https://vpn.example.invalid:444/", "https://192.0.2.1/",
|
||||
"https://other.invalid/", "https://vpn.example.invalid.evil.invalid/", "https://user@vpn.example.invalid/" })
|
||||
checks.Add(Rejects(() => PlatformBootstrapTransport.ValidateRequest(new Uri(uri))));
|
||||
checks.Add(Rejects(() => PlatformBootstrapTransport.ValidateRequest(new Uri("https://vpn.toplc.cn/"), "other.invalid")));
|
||||
checks.Add(Rejects(() => PlatformBootstrapTransport.ValidateRequest(new Uri("https://vpn.example.invalid/"), "other.invalid")));
|
||||
foreach (var ip in new[] { "198.18.0.0", "198.19.255.255", "::ffff:198.18.0.41" })
|
||||
checks.Add(PlatformBootstrapTransport.IsFakeAddress(IPAddress.Parse(ip)));
|
||||
foreach (var ip in new[] { "198.17.255.255", "198.20.0.0", "192.0.2.1", "::1" })
|
||||
|
||||
Reference in New Issue
Block a user