Skip to content

Commit a99dacd

Browse files
authored
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
1 parent 6d36265 commit a99dacd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/reference/reference_lua/box_info/listen.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ box.info.listen
1111
Since: :doc:`2.4.1 </release/2.4.1>`
1212

1313
A real address to which an instance is bound.
14+
If multiple URIs are configured, returns an array of strings.
1415
If an instance does not listen to anything, ``box.info.listen`` is ``nil``.
1516

1617
To learn how to configure URIs used to listen for incoming requests, see :ref:`iproto.listen <configuration_reference_iproto_listen>`.
1718

18-
:rtype: string
19+
:rtype: string | string[]
1920

2021
**Example**
2122

0 commit comments

Comments
 (0)