Skip to content

Commit 123c49c

Browse files
authored
Adjust singbox DNS server and rule position (#5229)
1 parent 1ff88d2 commit 123c49c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,13 +841,13 @@ private int GenDnsDomains(SingboxConfig singboxConfig)
841841
if (lstDomain != null && lstDomain.Count > 0)
842842
{
843843
var tag = "local_local";
844-
dns4Sbox.servers.Insert(0, new()
844+
dns4Sbox.servers.Add(new()
845845
{
846846
tag = tag,
847847
address = "223.5.5.5",
848848
detour = Global.DirectTag,
849849
});
850-
dns4Sbox.rules.Insert(0, new()
850+
dns4Sbox.rules.Add(new()
851851
{
852852
server = tag,
853853
domain = lstDomain

0 commit comments

Comments
 (0)