diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2016-08-23 16:43:05 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-22 07:06:41 +0200 |
commit | fd9e16ce97603d2dbc692ebc6e6f27b966ceca25 (patch) | |
tree | 923d23d6c4d9294c87030cf5e3ff0164b6cd5fe8 /src/pcu_main.cpp | |
parent | 465f5bbb6f9352ce02ba7d8cfbbc5d2b0cab4c9a (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
PCU offered this config but ignored it.
Change-Id: I4cca05a212ec0d493b906014dc3a83e687ebbb1d
Diffstat (limited to 'src/pcu_main.cpp')
-rw-r--r-- | src/pcu_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp index afdfdc75..4a75c79b 100644 --- a/src/pcu_main.cpp +++ b/src/pcu_main.cpp @@ -251,7 +251,8 @@ int main(int argc, char *argv[]) fprintf(stderr, "No config file: '%s' Using default config.\n", config_file); - rc = telnet_init(tall_pcu_ctx, NULL, OSMO_VTY_PORT_PCU); + rc = telnet_init_dynif(tall_pcu_ctx, NULL, vty_get_bind_addr(), + OSMO_VTY_PORT_PCU); if (rc < 0) { fprintf(stderr, "Error initializing telnet\n"); exit(1); |