mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
enable ipv6 support
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user