aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_osmux.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-10-12 20:06:16 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-10-12 20:06:16 +0200
commita777c9ee3d4e433c713f7a5c346519aa0321f096 (patch)
tree6cdff2927cf80118f5564fc1e54cabb567f948fb /openbsc/src/libmgcp/mgcp_osmux.c
parent9861c122dd50386f4b48bb65162f0a38f6d28785 (diff)
osmux: Allow to listen to a specific address
For a setup with multiple network interfaces be able to pick the one that osmux should be used/visible.
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_osmux.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_osmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/mgcp_osmux.c b/openbsc/src/libmgcp/mgcp_osmux.c
index 2d39b2c5e..be0db9920 100644
--- a/openbsc/src/libmgcp/mgcp_osmux.c
+++ b/openbsc/src/libmgcp/mgcp_osmux.c
@@ -415,7 +415,7 @@ int osmux_init(int role, struct mgcp_config *cfg)
}
osmux_fd.data = cfg;
- ret = mgcp_create_bind("0.0.0.0", &osmux_fd, cfg->osmux_port);
+ ret = mgcp_create_bind(cfg->osmux_addr, &osmux_fd, cfg->osmux_port);
if (ret < 0) {
LOGP(DMGCP, LOGL_ERROR, "cannot bind OSMUX socket\n");
return ret;