author | Florian Forster <octo@collectd.org> | |
Thu, 5 Oct 2017 13:23:28 +0000 (15:23 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 5 Oct 2017 13:23:28 +0000 (15:23 +0200) | ||
commit | 38617fa88d22997e91176ef901f842f384ff3711 | |
tree | f8843adb799320e1d8ca5cd0d199262f20d7aaeb | tree | snapshot |
parent | 01d23e3f5daf016d03f82d92a76be2fe3decdca4 | commit | diff |
write_prometheus plugin: Fall back to IPv4 socket if IPv6 fails.
Unfortunately, for libmicrohttpd "dual stack" means "enforce IPv6 (but
allow IPv4, too)". That means that on systems without IPv6,
libmicrohttpd'd initialization fails (when the dual stack flag is set).
To work around this limitation we open the socket ourselves and pass it
to libmicrohttpd to use.
Fixes: #2149
Unfortunately, for libmicrohttpd "dual stack" means "enforce IPv6 (but
allow IPv4, too)". That means that on systems without IPv6,
libmicrohttpd'd initialization fails (when the dual stack flag is set).
To work around this limitation we open the socket ourselves and pass it
to libmicrohttpd to use.
Fixes: #2149
src/write_prometheus.c | diff | blob | history |