From d735c5aa0a73f31304b39810ca4f4801d98c56e8 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 17 Sep 2025 12:25:19 +0200 Subject: [PATCH] Process review comments from @pieterlexis Signed-off-by: Otto Moerbeek --- pdns/recursordist/docs/lua-scripting/comboaddress.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. -- 2.47.3