Windows 0.3.1 clean monitor source delta; no private history or other platform changes
This commit is contained in:
@@ -18,7 +18,7 @@ internal static class LearningSelfTest
|
||||
checks["http_auth_status_is_not_failure"] = Parse("HTTP 401 / 403 / 429 direct learn.example.com:443") is null;
|
||||
checks["proxy_failures_not_direct"] = Parse(line.Replace("proxy/freedom", "proxy/vless/outbound")) is null;
|
||||
checks["private_failures_not_collected"] = Parse(line.Replace("learn.example.com", "192.168.50.111")) is null;
|
||||
checks["company_not_collected"] = Parse(line.Replace("learn.example.com", "vpn.toplc.cn")) is null;
|
||||
checks["company_not_collected"] = Parse(line.Replace("learn.example.com", "vpn.example.invalid")) is null;
|
||||
checks["source_not_misidentified"] = Parse("tcp:127.0.0.1:777 " + line)?.Target == "learn.example.com";
|
||||
checks["oversized_line_rejected"] = Parse(new string('x', 8193) + line) is null;
|
||||
const string attempt = "[Info] [1753901314] app/dispatcher: taking detour [direct] for [tcp:tls-gap.example.com:443]";
|
||||
@@ -71,7 +71,7 @@ internal static class LearningSelfTest
|
||||
checks["private_precedes_learned"] = JsonNode.Parse(verified)!["routing"]!["rules"]![0]!["ip"]![0]!.GetValue<string>() == "geoip:private";
|
||||
checks["expiry_restores_direct"] = !LearningPolicy.Merge(verified, new() { Contract=1, Revision=new string('b',64) }).Contains("learn.example.com");
|
||||
checks["network_change_restores_direct"] = !LearningPolicy.DirectFirst(verified).Contains("learn.example.com");
|
||||
checks["unsafe_manifest_rejected"] = Throws(() => LearningPolicy.Merge(direct, Rules("vpn.toplc.cn")));
|
||||
checks["unsafe_manifest_rejected"] = Throws(() => LearningPolicy.Merge(direct, Rules("vpn.example.invalid")));
|
||||
checks["invalid_manifest_contract_rejected"] = Throws(() => LearningPolicy.Merge(direct, new() { Contract=99, Revision=new string('a',64) }));
|
||||
var runtime = JsonNode.Parse(TunConfigBuilder.Build(direct, "Ethernet", true, includeTun:false, routingApiPort:18090, learningProbePort:18091))!;
|
||||
checks["info_in_memory_access_disabled"] = runtime["log"]!["loglevel"]!.GetValue<string>() == "info" && runtime["log"]!["access"]!.GetValue<string>() == "none";
|
||||
|
||||
Reference in New Issue
Block a user