From 0a05181603ed7c42900f049654de007005de86f3 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 23 Aug 2016 17:38:52 +0200 Subject: heed VTY 'line vty'/'bind' command Like most other osmo-* programs, bind the telnet VTY to the address specified by the 'line vty'/'bind' command. This is added by vty_init(), so until now the BTS offered this config but ignored it. Change-Id: Ic4ab32aee08d8a779adeb9943892de0c828c7b3d --- src/common/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/main.c b/src/common/main.c index 5e0f1a16..99febe03 100644 --- a/src/common/main.c +++ b/src/common/main.c @@ -303,7 +303,8 @@ int bts_main(int argc, char **argv) bts_controlif_setup(bts); - rc = telnet_init(tall_bts_ctx, NULL, g_vty_port_num); + rc = telnet_init_dynif(tall_bts_ctx, NULL, vty_get_bind_addr(), + g_vty_port_num); if (rc < 0) { fprintf(stderr, "Error initializing telnet\n"); exit(1); -- cgit v1.2.3