diff --git a/v2rayN/v2rayN/Handler/CoreConfigSingbox.cs b/v2rayN/v2rayN/Handler/CoreConfigSingbox.cs index 1e6f2004..638655af 100644 --- a/v2rayN/v2rayN/Handler/CoreConfigSingbox.cs +++ b/v2rayN/v2rayN/Handler/CoreConfigSingbox.cs @@ -675,24 +675,21 @@ namespace v2rayN.Handler return 0; } //Add the dns of the remote server domain - if (Utils.IsDomain(node.address)) + if (dns4Sbox.rules is null) { - if (dns4Sbox.rules is null) - { - dns4Sbox.rules = new(); - } - dns4Sbox.servers.Add(new() - { - tag = "local_local", - address = "223.5.5.5", - detour = "direct" - }); - dns4Sbox.rules.Add(new() - { - server = "local_local", - domain = new List() { node.address } - }); + dns4Sbox.rules = new(); } + dns4Sbox.servers.Add(new() + { + tag = "local_local", + address = "223.5.5.5", + detour = "direct" + }); + dns4Sbox.rules.Add(new() + { + server = "local_local", + outbound = "any" + }); singboxConfig.dns = dns4Sbox; }