From: Roman Arutyunyan Date: Wed, 8 Jul 2026 11:29:50 +0000 (+0400) Subject: Fix setting the IPV6_DONTFRAG socket option X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/doc/static/gitweb.js?a=commitdiff_plain;h=HEAD;p=nginx.git Fix setting the IPV6_DONTFRAG socket option The fix includes the socket option level (IPPROTO_IPV6) in the feature test and the macro (NGX_HAVE_IPV6_DONTFRAG) in the ngx_configure_listening_sockets() function. Reported by Eric Fortis. --- diff --git a/auto/unix b/auto/unix index 6087e04fd..40f9afa2f 100644 --- a/auto/unix +++ b/auto/unix @@ -472,7 +472,7 @@ ngx_feature_incs="#include #include " ngx_feature_path= ngx_feature_libs= -ngx_feature_test="setsockopt(0, IPPROTO_IP, IPV6_DONTFRAG, NULL, 0)" +ngx_feature_test="setsockopt(0, IPPROTO_IPV6, IPV6_DONTFRAG, NULL, 0)" . auto/feature diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index c269a97e6..33b9b1607 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -1099,7 +1099,7 @@ ngx_configure_listening_sockets(ngx_cycle_t *cycle) } } -#elif (NGX_HAVE_IP_DONTFRAG) +#elif (NGX_HAVE_IPV6_DONTFRAG) if (ls[i].quic && ls[i].sockaddr->sa_family == AF_INET6) { value = 1;