summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7fa5db)
raw | patch | inline | side by side (parent: c7fa5db)
author | tcarreira <tcarreira@github> | |
Thu, 12 Oct 2017 15:37:28 +0000 (16:37 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 16 Oct 2017 15:18:19 +0000 (17:18 +0200) |
Signed-off-by: Florian Forster <octo@collectd.org>
src/write_prometheus.c | patch | blob | history |
diff --git a/src/write_prometheus.c b/src/write_prometheus.c
index 68ec4e438d50978a654ad2d365bdaf72236f36e8..97f583f3f479d54e50eb4dfc959f5657dc50e926 100644 (file)
--- a/src/write_prometheus.c
+++ b/src/write_prometheus.c
}
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,
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);