diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-08-23 17:38:52 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-22 07:04:54 +0200 |
commit | 0a05181603ed7c42900f049654de007005de86f3 (patch) | |
tree | 1d04b24f81cae2d34b6473d6b771e43b94fa7c80 /src/common/main.c | |
parent | b4969cc915c6fa06165f42313d081951fdc1ee47 (diff) |
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
Diffstat (limited to 'src/common/main.c')
-rw-r--r-- | src/common/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |