From: Otto Moerbeek Date: Wed, 17 Sep 2025 10:25:19 +0000 (+0200) Subject: Process review comments from @pieterlexis X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F16130%2Fhead;p=thirdparty%2Fpdns.git Process review comments from @pieterlexis Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/docs/lua-scripting/comboaddress.rst b/pdns/recursordist/docs/lua-scripting/comboaddress.rst index e60ae9526..306c409e6 100644 --- a/pdns/recursordist/docs/lua-scripting/comboaddress.rst +++ b/pdns/recursordist/docs/lua-scripting/comboaddress.rst @@ -18,9 +18,9 @@ To compare the address (so not the port) of two :class:`ComboAddresses` instance a = newCA("[::1]:56") b = newCA("[::1]:53") - a == b -- false, reference mismatch - a:toString() == b:toString() -- false, port mismatch - a:equal(b) -- true + a == b -- false, reference mismatch + a:toStringWithPort() == b:toStringWithPort() -- false, port mismatch + a:equal(b) -- true To convert an address to human-friendly representation, use :meth:`:toString ` or :meth:`:toStringWithPort `. To get only the port number, use :meth:`:getPort() `. @@ -35,7 +35,7 @@ To get only the port number, use :meth:`:getPort() `. An object representing an IP address and port tuple. - .. method:: ComboAddress:equal(comboaddress) -> bool + .. method:: ComboAddress:equal(ComboAddress) -> bool Compare the address to another :class:`ComboAddress` object. The port numbers are *not* relevant.