box.info.listen
-
box.info.
listen
¶ Since version 2.4.1. Return a real address to which an instance was bound. For example, if
box.cfg{listen}
was set with a zero port,box.info.listen
will show a real port. The address is stored as a string:- unix/:<path> для доменных сокетов UNIX
- <ip>:<port> для IPv4
- [ip]:<port> для IPv6
Если экземпляр ничего не прослушивает, то
box.info.listen
вернет nil.Пример:
tarantool> box.cfg{listen=0} --- ... tarantool> box.cfg.listen --- - '0' ... tarantool> box.info.listen --- - 0.0.0.0:44149 ...