瀏覽代碼

Fix destination IP CIDR match in DNS

世界 1 年之前
父節點
當前提交
8332878cdc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      route/rule_item_cidr.go

+ 1 - 1
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 {
 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)
 		return r.ipSet.Contains(metadata.Source.Addr)
 	} else {
 	} else {
 		if metadata.Destination.IsIP() {
 		if metadata.Destination.IsIP() {