mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
libctrl: Bind control interface to localhost
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
4ad44249c3
commit
bc076ae53b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user