Skip to content

Commit

Permalink
Adjust singbox DNS server and rule position (#5229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lsyx-Good committed Jun 20, 2024
1 parent 1ff88d2 commit 123c49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2rayN/v2rayN/Handler/CoreConfig/CoreConfigSingbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,13 @@ private int GenDnsDomains(SingboxConfig singboxConfig)
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
Expand Down

0 comments on commit 123c49c

Please sign in to comment.