From: Xabier Napal Date: Mon, 20 Oct 2025 21:34:55 +0000 (+0200) Subject: feat(auth): add empty selector for ifportup and ifurlup functions X-Git-Tag: rec-5.4.0-beta1~83^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b1c943d4963e8aa665bd83a20efedfea3c2682f;p=thirdparty%2Fpdns.git feat(auth): add empty selector for ifportup and ifurlup functions Signed-off-by: Xabier Napal --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index a4b5c647f9..6e55657b98 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -641,6 +641,8 @@ static vector useSelector(const std::string &selector, const Combo if(selector=="all") return candidates; + else if(selector=="empty") + return ret; else if(selector=="random") ret.emplace_back(pickRandom(candidates)); else if(selector=="pickclosest")