Improves domain blocking and proxy handling (#7754)

master
DHR60 2025-08-14 09:30:58 +08:00 committed by GitHub
parent f45290eb3a
commit a73906505c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -1865,8 +1865,7 @@ public class CoreConfigSingboxService
else if (item.OutboundTag == Global.BlockTag)
{
rule.action = "predefined";
rule.rcode = "NOERROR";
rule.answer = new List<string> { "A" };
rule.rcode = "NXDOMAIN";
}
else
{

View File

@ -1263,7 +1263,7 @@ public class CoreConfigV2rayService
directDomainList.Add(normalizedDomain);
}
}
else if (item.OutboundTag == Global.ProxyTag)
else if (item.OutboundTag != Global.BlockTag)
{
if (normalizedDomain.StartsWith("geosite:"))
{