From 03bab77350d3d1db42f30c95293e1f704f31c246 Mon Sep 17 00:00:00 2001 From: lsyx <59752988+Lsyx-Good@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:04:15 +0800 Subject: [PATCH] Adjust singbox DNS server and rule position --- v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs b/v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs index 887bfd22..08cef896 100644 --- a/v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs +++ b/v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs @@ -841,13 +841,13 @@ namespace v2rayN.Handler.CoreConfig if (lstDomain != null && lstDomain.Count > 0) { var tag = "local_local"; - dns4Sbox.servers.Insert(0, new() + dns4Sbox.servers.Add(new() { tag = tag, address = "223.5.5.5", detour = Global.DirectTag, }); - dns4Sbox.rules.Insert(0, new() + dns4Sbox.rules.Add(new() { server = tag, domain = lstDomain