aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2022-12-17 20:59:00 +0300
committerMax <msuraev@sysmocom.de>2022-12-17 20:59:00 +0300
commit6263cf350a8e4db5e6048828790f2afc567c6372 (patch)
treec517f2d5156ab48108360c02de31251fb6f400c3
parent63eefabdde87df4dac9ed071df6535eed4f748c3 (diff)
ctrl: take both address and port from vty config
-rw-r--r--include/osmocom/hlr/hlr.h1
-rw-r--r--src/ctrl.c7
-rw-r--r--src/hlr.c1
3 files changed, 2 insertions, 7 deletions
diff --git a/include/osmocom/hlr/hlr.h b/include/osmocom/hlr/hlr.h
index e8df5cd..3acb3c5 100644
--- a/include/osmocom/hlr/hlr.h
+++ b/include/osmocom/hlr/hlr.h
@@ -48,7 +48,6 @@ struct hlr {
/* Control Interface */
struct ctrl_handle *ctrl;
- const char *ctrl_bind_addr;
/* Local bind addr */
char *gsup_bind_addr;
diff --git a/src/ctrl.c b/src/ctrl.c
index 11b0f5c..4e4afeb 100644
--- a/src/ctrl.c
+++ b/src/ctrl.c
@@ -771,11 +771,8 @@ static int hlr_ctrl_cmds_install(void)
struct ctrl_handle *hlr_controlif_setup(struct hlr *hlr)
{
int rc;
- struct ctrl_handle *hdl = ctrl_interface_setup_dynip2(hlr,
- hlr->ctrl_bind_addr,
- OSMO_CTRL_PORT_HLR,
- hlr_ctrl_node_lookup,
- _LAST_CTRL_NODE_HLR);
+ struct ctrl_handle *hdl = ctrl_interface_setup2(hlr, OSMO_CTRL_PORT_HLR, hlr_ctrl_node_lookup,
+ _LAST_CTRL_NODE_HLR);
if (!hdl)
return NULL;
diff --git a/src/hlr.c b/src/hlr.c
index 193dd38..037ebfe 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -830,7 +830,6 @@ int main(int argc, char **argv)
}
proxy_init(g_hlr->gs);
- g_hlr->ctrl_bind_addr = ctrl_vty_get_bind_addr();
g_hlr->ctrl = hlr_controlif_setup(g_hlr);
dgsm_start(hlr_ctx);