Bind CTRL port to IP addr specified in VTY config

Before this commit, osmo-trx was always setting its CTRL socket to
listen on 127.0.0.1.

Change-Id: I61a06c1b9c20a906e7030f824a93370d041be7b9
This commit is contained in:
Pau Espin 2019-07-22 12:30:14 +02:00 committed by pespin
parent 21d03d3912
commit 88f86a14ba
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ int main(int argc, char *argv[])
if (rc < 0)
exit(1);
g_ctrlh = ctrl_interface_setup(NULL, OSMO_CTRL_PORT_TRX, NULL);
g_ctrlh = ctrl_interface_setup_dynip(NULL, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_TRX, NULL);
if (!g_ctrlh) {
LOG(ERROR) << "Failed to create CTRL interface.\n";
exit(1);