ctrl: take both address and port from vty config
Change-Id: I5d73257c0233ce6772847809a6163b6ca4c88f83
diff --git a/src/osmo-smlc/smlc_main.c b/src/osmo-smlc/smlc_main.c
index 3f24a42..a2724b6 100644
--- a/src/osmo-smlc/smlc_main.c
+++ b/src/osmo-smlc/smlc_main.c
@@ -268,8 +268,7 @@
/* start control interface after reading config for
* ctrl_vty_get_bind_addr() */
- g_smlc->ctrl = ctrl_interface_setup_dynip2(g_smlc, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_SMLC,
- smlc_ctrl_node_lookup, _LAST_CTRL_NODE_SMLC);
+ g_smlc->ctrl = ctrl_interface_setup2(g_smlc, OSMO_CTRL_PORT_SMLC, smlc_ctrl_node_lookup, _LAST_CTRL_NODE_SMLC);
if (!g_smlc->ctrl) {
fprintf(stderr, "Failed to init the control interface. Exiting.\n");
exit(1);