From 3a7418099d7a95dcd91ac7729b4736d49c3dff8e Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 25 Mar 2024 11:24:40 +0100 Subject: [PATCH] rec: fix netmask docs wrt deprecatd isIpX() functions Fixes #13978 --- .../docs/lua-scripting/netmask.rst | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pdns/recursordist/docs/lua-scripting/netmask.rst b/pdns/recursordist/docs/lua-scripting/netmask.rst index dae9137974..6066a79124 100644 --- a/pdns/recursordist/docs/lua-scripting/netmask.rst +++ b/pdns/recursordist/docs/lua-scripting/netmask.rst @@ -43,27 +43,31 @@ The :class:`Netmask` class represents an IP netmask. .. method:: Netmask:isIpv4() -> bool - .. deprecated:: v4.3.0 + .. deprecated:: 4.3.0 - True if the netmask is an IPv4 netmask. + Use :func:`isIPv4`. + + True if the netmask is an IPv4 netmask. .. method:: Netmask:isIPv4() -> bool - .. versionadded:: v4.3.0 + .. versionadded:: 4.3.0 - True if the netmask is an IPv4 netmask. + True if the netmask is an IPv4 netmask. .. method:: Netmask:isIpv6() -> bool - .. deprecated:: v4.3.0 + .. deprecated:: 4.3.0 + + Use :func:`isIPv6`. - True if the netmask is an IPv6 netmask. + True if the netmask is an IPv6 netmask. .. method:: Netmask:isIPv6() -> bool - .. deprecated:: v4.3.0 + .. versionadded:: 4.3.0 - True if the netmask is an IPv6 netmask. + True if the netmask is an IPv6 netmask. .. method:: Netmask:match(address) -> bool -- 2.47.2