diff --git a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs index 3fb32524..fa995786 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/CoreConfigSingboxService.cs @@ -1862,7 +1862,13 @@ public class CoreConfigSingboxService } } } - else if (item.OutboundTag == Global.ProxyTag) + else if (item.OutboundTag == Global.BlockTag) + { + rule.action = "predefined"; + rule.rcode = "NOERROR"; + rule.answer = new List { "A" }; + } + else { if (simpleDNSItem.FakeIP == true) { @@ -1873,12 +1879,6 @@ public class CoreConfigSingboxService rule.server = Global.SingboxRemoteDNSTag; rule.strategy = string.IsNullOrEmpty(simpleDNSItem.SingboxStrategy4Proxy) ? null : simpleDNSItem.SingboxStrategy4Proxy; } - else if (item.OutboundTag == Global.BlockTag) - { - rule.action = "predefined"; - rule.rcode = "NOERROR"; - rule.answer = new List { "A" }; - } singboxConfig.dns.rules.Add(rule); }