From 0be0310258cf36a3565e4b76176b0053032e6ab6 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 19 Jun 2025 16:53:18 +0200 Subject: [PATCH] auth docs: note that pickselfweighted() is new in auth 5 --- docs/lua-records/functions.rst | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.47.2