From: Peter van Dijk Date: Thu, 2 Dec 2021 15:26:13 +0000 (+0100) Subject: auth docs: clarify that filterForward is new in 4.5.0 and fix example X-Git-Tag: auth-4.7.0-alpha1~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9598dcf285734f9fe8eef4da55d0303bf5d0a8;p=thirdparty%2Fpdns.git auth docs: clarify that filterForward is new in 4.5.0 and fix example --- 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 ~~~~~~~~~~~~~~~~