diff options
author | Max <msuraev@sysmocom.de> | 2022-12-17 20:59:00 +0300 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2022-12-17 20:59:00 +0300 |
commit | 6263cf350a8e4db5e6048828790f2afc567c6372 (patch) | |
tree | c517f2d5156ab48108360c02de31251fb6f400c3 | |
parent | 63eefabdde87df4dac9ed071df6535eed4f748c3 (diff) |
ctrl: take both address and port from vty config
Change-Id: Iecae15333a4e77b38d9bce8c8e591af3d5fcf347
-rw-r--r-- | include/osmocom/hlr/hlr.h | 1 | ||||
-rw-r--r-- | src/ctrl.c | 7 | ||||
-rw-r--r-- | src/hlr.c | 1 |
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; @@ -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; @@ -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); |