enable ipv6 support

This commit is contained in:
F. Duncanh
2024-03-27 19:14:14 -04:00
parent 9a34792c52
commit 088f6be0fb

View File

@@ -409,11 +409,11 @@ httpd_start(httpd_t *httpd, unsigned short *port)
MUTEX_UNLOCK(httpd->run_mutex);
return -1;
}
httpd->server_fd6 = -1;/*= netutils_init_socket(port, 1, 0);
httpd->server_fd6 = netutils_init_socket(port, 1, 0);
if (httpd->server_fd6 == -1) {
logger_log(httpd->logger, LOGGER_WARNING, "Error initialising IPv6 socket %d", SOCKET_GET_ERROR());
logger_log(httpd->logger, LOGGER_WARNING, "Continuing without IPv6 support");
}*/
}
if (httpd->server_fd4 != -1 && listen(httpd->server_fd4, backlog) == -1) {
logger_log(httpd->logger, LOGGER_ERR, "Error listening to IPv4 socket");