From f2f145aaf9d52115f67be5063987725d59e4d9ec Mon Sep 17 00:00:00 2001 From: Y7n05h Date: Sat, 4 Jun 2022 02:38:56 +0800 Subject: [PATCH] Update pdns/bpf-filter.hh Co-authored-by: Remi Gacogne --- pdns/bpf-filter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/bpf-filter.hh b/pdns/bpf-filter.hh index c2ee359feb..ba69407292 100644 --- a/pdns/bpf-filter.hh +++ b/pdns/bpf-filter.hh @@ -136,7 +136,7 @@ private: struct in6_addr addr; CIDR6(Netmask address) { - if (address.isIPv6()) { + if (!address.isIPv6()) { throw std::runtime_error("ComboAddress is invalid"); } addr = address.getNetwork().sin6.sin6_addr; -- 2.47.2