Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 9048:f4279edda9fd quic
HTTP/3: trigger more compatibility errors for "listen quic".
Now "ssl", "proxy_protocol" and "http2" are not allowed with "quic" in "listen"
directive. Previously, only "ssl" was not allowed.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 26 Jan 2023 15:25:33 +0400 |
parents | c851a2ed5ce8 |
children | 0af598651e33 |
comparison
equal
deleted
inserted
replaced
9047:c851a2ed5ce8 | 9048:f4279edda9fd |
---|---|
4318 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 4318 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
4319 "invalid parameter \"%V\"", &value[n]); | 4319 "invalid parameter \"%V\"", &value[n]); |
4320 return NGX_CONF_ERROR; | 4320 return NGX_CONF_ERROR; |
4321 } | 4321 } |
4322 | 4322 |
4323 #if (NGX_HTTP_SSL && NGX_HTTP_V3) | 4323 #if (NGX_HTTP_V3) |
4324 if (lsopt.ssl && lsopt.quic) { | 4324 |
4325 return "\"ssl\" parameter is incompatible with \"quic\""; | 4325 if (lsopt.quic) { |
4326 } | 4326 #if (NGX_HTTP_SSL) |
4327 if (lsopt.ssl) { | |
4328 return "\"ssl\" parameter is incompatible with \"quic\""; | |
4329 } | |
4330 #endif | |
4331 | |
4332 #if (NGX_HTTP_V2) | |
4333 if (lsopt.http2) { | |
4334 return "\"http2\" parameter is incompatible with \"quic\""; | |
4335 } | |
4336 #endif | |
4337 | |
4338 if (lsopt.proxy_protocol) { | |
4339 return "\"proxy_protocol\" parameter is incompatible with \"quic\""; | |
4340 } | |
4341 } | |
4342 | |
4327 #endif | 4343 #endif |
4328 | 4344 |
4329 for (n = 0; n < u.naddrs; n++) { | 4345 for (n = 0; n < u.naddrs; n++) { |
4330 | 4346 |
4331 for (i = 0; i < n; i++) { | 4347 for (i = 0; i < n; i++) { |