ctrl: take both address and port from vty config

Change-Id: I5d73257c0233ce6772847809a6163b6ca4c88f83
This commit is contained in:
Max 2022-12-17 21:32:29 +03:00
parent 518550e404
commit 5ac8ab7cd9
1 changed files with 1 additions and 2 deletions

View File

@ -268,8 +268,7 @@ int main(int argc, char **argv)
/* 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");