From: Aki Tuomi Date: Mon, 21 Oct 2019 07:34:18 +0000 (+0300) Subject: docs: Update documentation about isIPv4 and isIPv6 X-Git-Tag: auth-4.3.0-alpha1~21^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14075d063d795d00d2cdaefd7530143ff39195f3;p=thirdparty%2Fpdns.git docs: Update documentation about isIPv4 and isIPv6 --- diff --git a/docs/lua-records/reference/netmask.rst b/docs/lua-records/reference/netmask.rst index 3b9c3961af..57f311c26b 100644 --- a/docs/lua-records/reference/netmask.rst +++ b/docs/lua-records/reference/netmask.rst @@ -43,10 +43,26 @@ The :class:`Netmask` class represents an IP netmask. .. method:: Netmask:isIpv4() -> bool + .. deprecated:: v4.3.0 + + True if the netmask is an IPv4 netmask. + + .. method:: Netmask:isIPv4() -> bool + + .. versionadded:: v4.3.0 + True if the netmask is an IPv4 netmask. .. method:: Netmask:isIpv6() -> bool + .. deprecated:: v4.3.0 + + True if the netmask is an IPv6 netmask. + + .. method:: Netmask:isIPv6() -> bool + + .. deprecated:: v4.3.0 + True if the netmask is an IPv6 netmask. .. method:: Netmask:match(address) -> bool diff --git a/pdns/recursordist/docs/lua-scripting/netmask.rst b/pdns/recursordist/docs/lua-scripting/netmask.rst index 3b9c3961af..57f311c26b 100644 --- a/pdns/recursordist/docs/lua-scripting/netmask.rst +++ b/pdns/recursordist/docs/lua-scripting/netmask.rst @@ -43,10 +43,26 @@ The :class:`Netmask` class represents an IP netmask. .. method:: Netmask:isIpv4() -> bool + .. deprecated:: v4.3.0 + + True if the netmask is an IPv4 netmask. + + .. method:: Netmask:isIPv4() -> bool + + .. versionadded:: v4.3.0 + True if the netmask is an IPv4 netmask. .. method:: Netmask:isIpv6() -> bool + .. deprecated:: v4.3.0 + + True if the netmask is an IPv6 netmask. + + .. method:: Netmask:isIPv6() -> bool + + .. deprecated:: v4.3.0 + True if the netmask is an IPv6 netmask. .. method:: Netmask:match(address) -> bool