From: Otto Moerbeek Date: Fri, 17 Jan 2025 10:49:21 +0000 (+0100) Subject: To match incoming, don't look at subnet X-Git-Tag: rec-5.0.12~1^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa8b6c4e0c139a26d365f120d19623b78e352d04;p=thirdparty%2Fpdns.git To match incoming, don't look at subnet --- diff --git a/pdns/recursordist/syncres.hh b/pdns/recursordist/syncres.hh index 45f16e76a3..ce6a490dbd 100644 --- a/pdns/recursordist/syncres.hh +++ b/pdns/recursordist/syncres.hh @@ -803,10 +803,10 @@ struct PacketIDCompare { bool operator()(const std::shared_ptr& lhs, const std::shared_ptr& rhs) const { - if (std::tie(lhs->remote, lhs->tcpsock, lhs->type, lhs->ecsSubnet) < std::tie(rhs->remote, rhs->tcpsock, rhs->type, rhs->ecsSubnet)) { + if (std::tie(lhs->remote, lhs->tcpsock, lhs->type) < std::tie(rhs->remote, rhs->tcpsock, rhs->type)) { return true; } - if (std::tie(lhs->remote, lhs->tcpsock, lhs->type, lhs->ecsSubnet) > std::tie(rhs->remote, rhs->tcpsock, rhs->type, rhs->ecsSubnet)) { + if (std::tie(lhs->remote, lhs->tcpsock, lhs->type) > std::tie(rhs->remote, rhs->tcpsock, rhs->type)) { return false; }