From 5e9b7f372d704b9156b130f91c8e8fa1ef5cbea7 Mon Sep 17 00:00:00 2001 From: dyhkwong <50692134+dyhkwong@users.noreply.github.com> Date: Fri, 10 May 2024 18:16:14 +0800 Subject: [PATCH] fix client_subnet not applied to logical rules --- route/rule_dns.go | 1 + 1 file changed, 1 insertion(+) diff --git a/route/rule_dns.go b/route/rule_dns.go index 85ded961..7501349f 100644 --- a/route/rule_dns.go +++ b/route/rule_dns.go @@ -284,6 +284,7 @@ func NewLogicalDNSRule(router adapter.Router, logger log.ContextLogger, options }, disableCache: options.DisableCache, rewriteTTL: options.RewriteTTL, + clientSubnet: (*netip.Addr)(options.ClientSubnet), } switch options.Mode { case C.LogicalTypeAnd: