summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-21 11:48:02 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-21 11:48:02 +0100
commit5b0d4618df1f187dc42520e6cfe9391b2fac34d4 (patch)
treedf7c5e7d002396e06c933257a37d95b6c305867d
parentc1879e47ba99c32fb7b9c12a842723fe7f293bcb (diff)
telnet: Use the dynamic interface for binding the VTY
This way one can bind the interface to another ip address.
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
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);