Not without patching the code, it only opens a v4 socket if v6 fails to
bind (and seems the httpd library they use won't cope with multiple binds).
817 static struct MHD_Daemon *prom_start_daemon() {
818 /* {{{ */
819 int fd = prom_open_socket(PF_INET6);
820 if (fd == -1)
821 fd =
Hello,
I have installed collectd-prometheus-5.8.1p3 on OpenBSD 7.2-STABLE/amd64
and collectd-prometheus-5.12.0p0 on OPenBSD 7.2-CURRENT/arm64. I added
the following to my /etc/collectd.conf:
Port 9103
In both case, the webserver only listens on IPv6, not IPv4.
# netstat -na | grep 9103