libctrl: Bind control interface to localhost

This commit is contained in:
Daniel Willmann 2011-07-29 10:41:24 +02:00 committed by Harald Welte
parent 19abc95970
commit b06dd3010f
1 changed files with 1 additions and 1 deletions

View File

@ -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);