aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-07-22 12:30:14 +0200
committerpespin <pespin@sysmocom.de>2019-07-22 22:15:24 +0000
commit88f86a14ba3c06e48c399fffc430bab4fe39d0c4 (patch)
treeb41ee537870fc8e858276635e7863f972615fb9a /Transceiver52M
parent21d03d3912d54ab69778893ca2c8d2ff07a6fe15 (diff)
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
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/osmo-trx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp
index cd659a7..15f744c 100644
--- a/Transceiver52M/osmo-trx.cpp
+++ b/Transceiver52M/osmo-trx.cpp
@@ -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);