From 88f86a14ba3c06e48c399fffc430bab4fe39d0c4 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 22 Jul 2019 12:30:14 +0200 Subject: 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 --- Transceiver52M/osmo-trx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Transceiver52M') 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); -- cgit v1.2.3