From: Peter van Dijk Date: Thu, 19 Jun 2025 14:53:18 +0000 (+0200) Subject: auth docs: note that pickselfweighted() is new in auth 5 X-Git-Tag: dnsdist-2.0.0-beta1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15697%2Fhead;p=thirdparty%2Fpdns.git auth docs: note that pickselfweighted() is new in auth 5 --- diff --git a/docs/lua-records/functions.rst b/docs/lua-records/functions.rst index 8bbbb895c4..17955232c6 100644 --- a/docs/lua-records/functions.rst +++ b/docs/lua-records/functions.rst @@ -147,6 +147,8 @@ Record creation functions .. function:: pickselfweighted(url, addresses[, options]) + .. versionadded:: 5.0.0 + Selects an IP address from the supplied list, weighted according to the results of `isUp` checks. Each address is evaluated, and if its associated weight (from `isUp`) is greater than 0, it is considered for selection using a weighted hash based on `bestwho`. If no address is "up" the function defaults to a random selection. :param string url: The health check url to retrieve.