I think it we ask for AF_INET6, we get 4+6. Let's do that.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4719 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-12-31 03:42:07 +00:00
parent 93d9b1ed93
commit 04af1f0053

View File

@ -584,11 +584,11 @@ int tf_http_listen(tf_http_t* http, int port, tf_tls_context_t* tls)
if (r == 0)
{
struct sockaddr_in addr =
struct sockaddr_in6 addr =
{
.sin_family = AF_INET,
.sin_addr = { .s_addr = INADDR_ANY },
.sin_port = ntohs(port),
.sin6_family = AF_INET6,
.sin6_addr = IN6ADDR_ANY_INIT,
.sin6_port = ntohs(port),
};
r = uv_tcp_bind(&listener->tcp, (struct sockaddr*)&addr, 0);
if (r)