From 5b0d4618df1f187dc42520e6cfe9391b2fac34d4 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 21 Mar 2016 11:48:02 +0100 Subject: telnet: Use the dynamic interface for binding the VTY This way one can bind the interface to another ip address. --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index de0dd85..021f986 100644 --- a/src/main.c +++ b/src/main.c @@ -84,7 +84,10 @@ int main(int argc, char **argv) sip_root = su_glib_root_create(NULL); /* parsing and setup */ - rc = telnet_init(tall_mncc_ctx, NULL, OSMO_VTY_PORT_MNCC_SIP); + LOGP(DAPP, LOGL_NOTICE, "VTY at %s %d\n", + vty_get_bind_addr(), OSMO_VTY_PORT_MNCC_SIP); + rc = telnet_init_dynif(tall_mncc_ctx, NULL, + vty_get_bind_addr(), OSMO_VTY_PORT_MNCC_SIP); if (rc < 0) exit(1); -- cgit v1.2.3