comparison src/http/ngx_http_core_module.c @ 9104:69bae2437d74 quic

HTTP/3: removed "http3" parameter of "listen" directive. The parameter has been deprecated since c851a2ed5ce8.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 11 May 2023 13:22:10 +0400
parents 0af598651e33
children 08ef02ad5c54
comparison
equal deleted inserted replaced
9103:b9230e37b8a1 9104:69bae2437d74
4184 "ngx_http_v2_module"); 4184 "ngx_http_v2_module");
4185 return NGX_CONF_ERROR; 4185 return NGX_CONF_ERROR;
4186 #endif 4186 #endif
4187 } 4187 }
4188 4188
4189 if (ngx_strcmp(value[n].data, "http3") == 0) {
4190 #if (NGX_HTTP_V3)
4191 ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
4192 "the \"http3\" parameter is deprecated, "
4193 "use \"quic\" parameter instead");
4194 lsopt.quic = 1;
4195 lsopt.http3 = 1;
4196 lsopt.type = SOCK_DGRAM;
4197 continue;
4198 #else
4199 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
4200 "the \"http3\" parameter requires "
4201 "ngx_http_v3_module");
4202 return NGX_CONF_ERROR;
4203 #endif
4204 }
4205
4206 if (ngx_strcmp(value[n].data, "quic") == 0) { 4189 if (ngx_strcmp(value[n].data, "quic") == 0) {
4207 #if (NGX_HTTP_V3) 4190 #if (NGX_HTTP_V3)
4208 lsopt.quic = 1; 4191 lsopt.quic = 1;
4209 lsopt.type = SOCK_DGRAM; 4192 lsopt.type = SOCK_DGRAM;
4210 continue; 4193 continue;