Add block AAAA query support (#10004)

This commit is contained in:
DHR60
2026-08-22 02:18:48 +00:00
committed by GitHub
parent 26a86f9bd2
commit 728cbe70f2
21 changed files with 142 additions and 26 deletions
@@ -282,13 +282,23 @@ public partial class CoreConfigSingboxService
{
query_type = [1, 28], // A and AAAA
},
fakeipFilterRule
]
fakeipFilterRule,
],
};
_coreConfig.dns.rules.Add(rule4Fake);
}
if (simpleDnsItem.BlockAAAAQuery == true)
{
_coreConfig.dns.rules.Add(new()
{
query_type = [28],
action = "predefined",
rcode = "NOERROR",
});
}
var routing = context.RoutingItem;
if (routing == null)
{