From e21b137ec98244a6dc8da6898504ec3763a2ce13 Mon Sep 17 00:00:00 2001 From: tcarreira Date: Thu, 12 Oct 2017 16:37:28 +0100 Subject: [PATCH] [2475] write_prometheus plugin: Fix port listening Signed-off-by: Florian Forster --- src/write_prometheus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2