From 14075d063d795d00d2cdaefd7530143ff39195f3 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Mon, 21 Oct 2019 10:34:18 +0300 Subject: [PATCH] docs: Update documentation about isIPv4 and isIPv6 --- docs/lua-records/reference/netmask.rst | 16 ++++++++++++++++ pdns/recursordist/docs/lua-scripting/netmask.rst | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) 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 -- 2.47.2