From af9598dcf285734f9fe8eef4da55d0303bf5d0a8 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 2 Dec 2021 16:26:13 +0100 Subject: [PATCH] auth docs: clarify that filterForward is new in 4.5.0 and fix example --- docs/lua-records/functions.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/lua-records/functions.rst b/docs/lua-records/functions.rst index 52bce72556..e6131bde41 100644 --- a/docs/lua-records/functions.rst +++ b/docs/lua-records/functions.rst @@ -320,6 +320,8 @@ Reverse DNS functions .. function:: filterForward(address, masks[, fallback]) + .. versionadded:: 4.5.0 + Used for limiting the output of :func:`createForward` and :func:`createForward6` to a set of netmasks. :param address: A string containing an address, usually taken directly from :func:`createForward: or :func:`createForward6`. @@ -328,7 +330,7 @@ Reverse DNS functions Example:: - *.static4.example.com IN LUA A "filterForward(createForward(), newNMG():addMasks{'192.0.2.0/24', '10.0.0.0/8'})" + *.static4.example.com IN LUA A "filterForward(createForward(), newNMG({'192.0.2.0/24', '10.0.0.0/8'}))" Helper functions ~~~~~~~~~~~~~~~~ -- 2.47.2