From: tcarreira Date: Thu, 12 Oct 2017 15:37:28 +0000 (+0100) Subject: [2475] write_prometheus plugin: Fix port listening X-Git-Tag: collectd-5.8.0~1^2~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e21b137ec98244a6dc8da6898504ec3763a2ce13;p=collectd.git [2475] write_prometheus plugin: Fix port listening Signed-off-by: Florian Forster --- diff --git a/src/write_prometheus.c b/src/write_prometheus.c index 68ec4e43..97f583f3 100644 --- a/src/write_prometheus.c +++ b/src/write_prometheus.c @@ -795,7 +795,7 @@ static struct MHD_Daemon *prom_start_daemon() { } struct MHD_Daemon *d = MHD_start_daemon( - MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 0, + MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, httpd_port, /* MHD_AcceptPolicyCallback = */ NULL, /* MHD_AcceptPolicyCallback arg = */ NULL, http_handler, NULL, MHD_OPTION_LISTEN_SOCKET, fd, MHD_OPTION_EXTERNAL_LOGGER, prom_logger, @@ -812,7 +812,7 @@ static struct MHD_Daemon *prom_start_daemon() { static struct MHD_Daemon *prom_start_daemon() { /* {{{ */ struct MHD_Daemon *d = MHD_start_daemon( - MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 0, + MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, httpd_port, /* MHD_AcceptPolicyCallback = */ NULL, /* MHD_AcceptPolicyCallback arg = */ NULL, http_handler, NULL, MHD_OPTION_EXTERNAL_LOGGER, prom_logger, NULL, MHD_OPTION_END);