dns: Add namespace and parallel support for evaluate

This commit is contained in:
世界
2026-08-30 17:41:44 +08:00
parent 510586c4f8
commit e09e3b49f9
12 changed files with 1383 additions and 129 deletions
+1
View File
@@ -86,6 +86,7 @@ type InboundContext struct {
DestinationAddresses []netip.Addr
DNSResponse *dns.Msg
NamedDNSResponses map[string]*dns.Msg
DestinationAddressMatchFromResponse bool
SourceGeoIPCode string
GeoIPCode string
+4
View File
@@ -23,6 +23,10 @@ type DNSRule interface {
LegacyPreMatch(metadata *InboundContext) bool
WithAddressLimit() bool
MatchAddressLimit(metadata *InboundContext, response *dns.Msg) bool
MatchResponseTag() string
MatchResponseTags() []string
MatchResponseAnonymous() bool
Race() bool
}
type RuleAction interface {