mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-08 13:35:01 +03:00
Fix (#9166)
This commit is contained in:
@@ -481,7 +481,7 @@ public class CoreConfigSingboxServiceTests
|
|||||||
{
|
{
|
||||||
servers =
|
servers =
|
||||||
[
|
[
|
||||||
new Server4Sbox { tag = "remote", address = "8.8.8.8", detour = Global.ProxyTag, }
|
new Server4Sbox { tag = "remote", type = "udp", server = "8.8.8.8", detour = Global.ProxyTag, }
|
||||||
],
|
],
|
||||||
rules = [],
|
rules = [],
|
||||||
};
|
};
|
||||||
@@ -503,7 +503,7 @@ public class CoreConfigSingboxServiceTests
|
|||||||
result.Success.Should().BeTrue($"ret msg: {result.Msg}");
|
result.Success.Should().BeTrue($"ret msg: {result.Msg}");
|
||||||
var cfg = JsonUtils.Deserialize<SingboxConfig>(result.Data!.ToString())!;
|
var cfg = JsonUtils.Deserialize<SingboxConfig>(result.Data!.ToString())!;
|
||||||
|
|
||||||
cfg.dns.servers.Should().Contain(s => s.tag == "remote" && s.address == "8.8.8.8");
|
cfg.dns.servers.Should().Contain(s => s.tag == "remote" && s.type == "udp" && s.server == "8.8.8.8");
|
||||||
cfg.dns.servers.Should().Contain(s => s.tag == Global.SingboxLocalDNSTag);
|
cfg.dns.servers.Should().Contain(s => s.tag == Global.SingboxLocalDNSTag);
|
||||||
cfg.dns.rules.Should().Contain(r => r.clash_mode == ERuleMode.Global.ToString());
|
cfg.dns.rules.Should().Contain(r => r.clash_mode == ERuleMode.Global.ToString());
|
||||||
cfg.dns.rules.Should().Contain(r => r.clash_mode == ERuleMode.Direct.ToString());
|
cfg.dns.rules.Should().Contain(r => r.clash_mode == ERuleMode.Direct.ToString());
|
||||||
|
|||||||
Reference in New Issue
Block a user