Compare commits

..

1 commit

Author SHA1 Message Date
Reza Bakhshi Laktasaraei
96c023fa9a
Merge a055108a53 into 5a0fdd971a 2025-04-30 12:27:14 +03:30

View file

@ -1278,12 +1278,12 @@ public class CoreConfigSingboxService
detour = Global.DirectTag,
strategy = string.IsNullOrEmpty(dNSItem?.DomainStrategy4Freedom) ? null : dNSItem?.DomainStrategy4Freedom,
});
dns4Sbox.rules.Insert(0, new()
dns4Sbox.rules.Add(new()
{
server = tag,
clash_mode = ERuleMode.Direct.ToString()
});
dns4Sbox.rules.Insert(0, new()
dns4Sbox.rules.Add(new()
{
server = dns4Sbox.servers.Where(t => t.detour == Global.ProxyTag).Select(t => t.tag).FirstOrDefault() ?? "remote",
clash_mode = ERuleMode.Global.ToString()