mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Fix setting the IPV6_DONTFRAG socket option
Some checks failed
buildbot / buildbot (push) Has been cancelled
Some checks failed
buildbot / buildbot (push) Has been cancelled
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.
This commit is contained in:
parent
3f720dc784
commit
18ccebb1a8
2 changed files with 2 additions and 2 deletions
|
|
@ -472,7 +472,7 @@ ngx_feature_incs="#include <sys/socket.h>
|
|||
#include <netinet/in.h>"
|
||||
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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue