added MHD_FLAG to make promhttp daemon use dual_stack

This commit is contained in:
unicode-it 2022-03-15 16:49:36 +01:00 committed by Gustavo Garcia
parent bb1bd984f2
commit e337c179c6
No known key found for this signature in database
GPG Key ID: B5D049293A189652

View File

@ -70,8 +70,7 @@ int start_prometheus_server(void){
promhttp_set_active_collector_registry(NULL);
struct MHD_Daemon *daemon = promhttp_start_daemon(MHD_USE_SELECT_INTERNALLY, turn_params.prometheus_port, NULL, NULL);
struct MHD_Daemon *daemon = promhttp_start_daemon(MHD_USE_SELECT_INTERNALLY | MHD_USE_DUAL_STACK, turn_params.prometheus_port, NULL, NULL);
if (daemon == NULL) {
return -1;
}