From 4dcea57454f340ba3e527021710ac7b1e7fd6a10 Mon Sep 17 00:00:00 2001 From: "a.ardeev" Date: Wed, 14 May 2025 10:42:45 +0300 Subject: [PATCH] Add array of strings return type The box.info.listen is capable of returningan an array of strings if several URIs are configured. Fixes #5092 --- doc/reference/reference_lua/box_info/listen.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/reference/reference_lua/box_info/listen.rst b/doc/reference/reference_lua/box_info/listen.rst index 7636e9c98..dff94a647 100644 --- a/doc/reference/reference_lua/box_info/listen.rst +++ b/doc/reference/reference_lua/box_info/listen.rst @@ -11,11 +11,12 @@ box.info.listen Since: :doc:`2.4.1 ` A real address to which an instance is bound. + If multiple URIs are configured, returns an array of strings. If an instance does not listen to anything, ``box.info.listen`` is ``nil``. To learn how to configure URIs used to listen for incoming requests, see :ref:`iproto.listen `. - :rtype: string + :rtype: string | string[] **Example**