api: Listen with MHD_OPTION_LISTENING_ADDRESS_REUSE

This commit is contained in:
Luke Dashjr 2025-03-08 19:40:12 +00:00
parent 8df1c4fa5b
commit 081a38f429
No known key found for this signature in database
GPG Key ID: A291A2C45D0C504A

View File

@ -1139,6 +1139,7 @@ void *datum_api_thread(void *ptr) {
daemon = MHD_start_daemon(MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD, datum_config.api_listen_port, NULL, NULL, &datum_api_answer, NULL,
MHD_OPTION_CONNECTION_LIMIT, 128,
MHD_OPTION_NOTIFY_COMPLETED, datum_api_request_completed, NULL,
MHD_OPTION_LISTENING_ADDRESS_REUSE, (unsigned int)1,
MHD_OPTION_END);
if (!daemon) {