]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth docs: note that pickselfweighted() is new in auth 5 15697/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Jun 2025 14:53:18 +0000 (16:53 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Jun 2025 14:53:18 +0000 (16:53 +0200)
docs/lua-records/functions.rst

index 8bbbb895c4850891521982b0264eef8682d4e5ca..17955232c67c6f80e847d739ae42665f59fa6d99 100644 (file)
@@ -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.