ctrl: take both address and port from vty config
Change-Id: Iecae15333a4e77b38d9bce8c8e591af3d5fcf347
This commit is contained in:
parent
63eefabdde
commit
6263cf350a
|
@ -48,7 +48,6 @@ struct hlr {
|
||||||
|
|
||||||
/* Control Interface */
|
/* Control Interface */
|
||||||
struct ctrl_handle *ctrl;
|
struct ctrl_handle *ctrl;
|
||||||
const char *ctrl_bind_addr;
|
|
||||||
|
|
||||||
/* Local bind addr */
|
/* Local bind addr */
|
||||||
char *gsup_bind_addr;
|
char *gsup_bind_addr;
|
||||||
|
|
|
@ -771,11 +771,8 @@ static int hlr_ctrl_cmds_install(void)
|
||||||
struct ctrl_handle *hlr_controlif_setup(struct hlr *hlr)
|
struct ctrl_handle *hlr_controlif_setup(struct hlr *hlr)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
struct ctrl_handle *hdl = ctrl_interface_setup_dynip2(hlr,
|
struct ctrl_handle *hdl = ctrl_interface_setup2(hlr, OSMO_CTRL_PORT_HLR, hlr_ctrl_node_lookup,
|
||||||
hlr->ctrl_bind_addr,
|
_LAST_CTRL_NODE_HLR);
|
||||||
OSMO_CTRL_PORT_HLR,
|
|
||||||
hlr_ctrl_node_lookup,
|
|
||||||
_LAST_CTRL_NODE_HLR);
|
|
||||||
if (!hdl)
|
if (!hdl)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue