Add custom prefix support in EDNS0 client subnet options

This commit is contained in:
世界
2024-05-12 15:06:21 +08:00
parent f6b04590b4
commit 2be319ea85
15 changed files with 96 additions and 41 deletions

View File

@@ -86,7 +86,7 @@ type DNSRule interface {
Rule
DisableCache() bool
RewriteTTL() *uint32
ClientSubnet() *netip.Addr
ClientSubnet() *netip.Prefix
WithAddressLimit() bool
MatchAddressLimit(metadata *InboundContext) bool
}