hnbgw: use proper VTY port number defined in libosmocore (4261)

We used to have hardcoded 2323 from early development, use the proper
libosmocore definition instead.

Depends: Ife52a968a41cb286f640006587877971ff66c1a4 (libosmocore)
Change-Id: Id67d89695ebdc6288f507338c15ad773b8adf6e4
This commit is contained in:
Neels Hofmeyr 2017-12-20 02:31:49 +01:00 committed by Neels Hofmeyr
parent 69888c86ed
commit 2c56f6d454
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
#include <osmocom/vty/command.h>
#include <osmocom/vty/ports.h>
#include <osmocom/netif/stream.h>
@ -470,7 +471,7 @@ int main(int argc, char **argv)
log_set_log_level(osmo_stderr_target,
hnbgw_cmdline_config.log_level);
rc = telnet_init_dynif(NULL, g_hnb_gw, vty_get_bind_addr(), 2323);
rc = telnet_init_dynif(NULL, g_hnb_gw, vty_get_bind_addr(), OSMO_VTY_PORT_HNBGW);
if (rc < 0) {
perror("Error binding VTY port");
exit(1);