Fix destination IP CIDR match in DNS

This commit is contained in:
世界 2024-02-10 22:35:35 +08:00
parent d0ba69ad22
commit 8332878cdc
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 1 additions and 1 deletions

View File

@ -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() {