From 123c49c22de3d4e8cb82748b37f0361ba27359e1 Mon Sep 17 00:00:00 2001 From: Lsyx-Good <59752988+Lsyx-Good@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:08:08 +0800 Subject: [PATCH] Adjust singbox DNS server and rule position (#5229) --- 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