Adjust singbox DNS server and rule position

This commit is contained in:
lsyx 2024-06-14 15:04:15 +08:00
parent 63d5a2a1be
commit 03bab77350

View file

@ -841,13 +841,13 @@ namespace v2rayN.Handler.CoreConfig
if (lstDomain != null && lstDomain.Count > 0) if (lstDomain != null && lstDomain.Count > 0)
{ {
var tag = "local_local"; var tag = "local_local";
dns4Sbox.servers.Insert(0, new() dns4Sbox.servers.Add(new()
{ {
tag = tag, tag = tag,
address = "223.5.5.5", address = "223.5.5.5",
detour = Global.DirectTag, detour = Global.DirectTag,
}); });
dns4Sbox.rules.Insert(0, new() dns4Sbox.rules.Add(new()
{ {
server = tag, server = tag,
domain = lstDomain domain = lstDomain