From 8332878cdce81aea5dcb297800c50965f0e7b8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 10 Feb 2024 22:35:35 +0800 Subject: [PATCH] Fix destination IP CIDR match in DNS --- route/rule_item_cidr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/rule_item_cidr.go b/route/rule_item_cidr.go index 0e15e674..85b9c8d7 100644 --- a/route/rule_item_cidr.go +++ b/route/rule_item_cidr.go @@ -73,7 +73,7 @@ func NewRawIPCIDRItem(isSource bool, ipSet *netipx.IPSet) *IPCIDRItem { } func (r *IPCIDRItem) Match(metadata *adapter.InboundContext) bool { - if r.isSource || metadata.QueryType != 0 || metadata.IPCIDRMatchSource { + if r.isSource || metadata.IPCIDRMatchSource { return r.ipSet.Contains(metadata.Source.Addr) } else { if metadata.Destination.IsIP() {