diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-24 20:50:31 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-24 20:51:04 +0100 |
commit | a0d21479a775583cd3dc2bb55295b089284a1b07 (patch) | |
tree | 10049a9a48239c0c13056fb5309989f4b4f13b02 /src/hnbgw.c | |
parent | 19dea8b49b538a1918bd25d814c212fe397b3cad (diff) |
osmo-hnbgw, hnb-test: allow configuring VTY address
Diffstat (limited to 'src/hnbgw.c')
-rw-r--r-- | src/hnbgw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c index 2353708..3553f9e 100644 --- a/src/hnbgw.c +++ b/src/hnbgw.c @@ -412,7 +412,11 @@ int main(int argc, char **argv) vty_init(&vty_info); hnbgw_vty_init(); - rc = telnet_init(NULL, g_hnb_gw, 2323); + /* NOTE: if we add a config file, read the config before + * fetching the telnet address with vty_get_bind_addr() */ + LOGP(DMAIN, LOGL_NOTICE, "VTY at %s %d\n", + vty_get_bind_addr(), 2323); + rc = telnet_init_dynif(NULL, g_hnb_gw, vty_get_bind_addr(), 2323); if (rc < 0) { perror("Error binding VTY port"); exit(1); |