summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2011-07-29 10:41:24 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-22 23:45:56 +0200
commitbc076ae53b77d857475887ac5841524ea2a398b7 (patch)
tree982ed0d9f9c2ccd8f1bf4c739f6f144765e2de95
parent4ad44249c3bc1df9dff86ae3461c02cd1c9ed6ee (diff)
libctrl: Bind control interface to localhost
-rw-r--r--openbsc/src/libctrl/control_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c
index 299b00d17..49e2ab19e 100644
--- a/openbsc/src/libctrl/control_if.c
+++ b/openbsc/src/libctrl/control_if.c
@@ -615,7 +615,7 @@ int controlif_setup(struct gsm_network *gsmnet, uint16_t port)
return -ENOMEM;
/* Listen for control connections */
- ret = make_sock(&ctrl->listen_fd, IPPROTO_TCP, 0, port,
+ ret = make_sock(&ctrl->listen_fd, IPPROTO_TCP, INADDR_LOOPBACK, port,
0, listen_fd_cb, ctrl);
if (ret < 0) {
talloc_free(ctrl);