This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Description
config.json:
{
...
"http" : "127.0.0.1:8080",
...
}
Expected: brubeck should bind only to the loopback interface / 127.0.0.1.
Actual: brubeck binds it's http listener on all interfaces (see *:8080 below)
[localhost]# ss -tulpn | grep brubeck
udp UNCONN 0 0 127.0.0.1:8125 *:* users:(("brubeck",pid=27614,fd=6))
tcp LISTEN 0 32 *:8080 *:* users:(("brubeck",pid=27614,fd=7))
Possible fix is to parse out the address from the "http" bind string and pass along as MHD_OPTION_SOCK_ADDR in brubeck_http_endpoint_init.
See
|
void brubeck_http_endpoint_init(struct brubeck_server *server, const char *listen) |