From b06dd3010fa6740c996f0cbffe5b64e801b78ef0 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 29 Jul 2011 10:41:24 +0200 Subject: libctrl: Bind control interface to localhost --- openbsc/src/libctrl/control_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c index 299b00d1..49e2ab19 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); -- cgit v1.2.3