mirror of
https://github.com/nginx/nginx.git
synced 2025-06-22 05:40:48 +08:00
QUIC: fixed config test with bpf (ticket #2292).
The SO_REUSEPORT socket option is not set during configuration testing, thus making the further module initialization impossible and meaningless.
This commit is contained in:
parent
cd278da5e7
commit
bef80e70f6
@ -130,6 +130,14 @@ ngx_quic_bpf_module_init(ngx_cycle_t *cycle)
|
|||||||
ngx_pool_cleanup_t *cln;
|
ngx_pool_cleanup_t *cln;
|
||||||
ngx_quic_bpf_conf_t *bcf;
|
ngx_quic_bpf_conf_t *bcf;
|
||||||
|
|
||||||
|
if (ngx_test_config) {
|
||||||
|
/*
|
||||||
|
* during config test, SO_REUSEPORT socket option is
|
||||||
|
* not set, thus making further processing meaningless
|
||||||
|
*/
|
||||||
|
return NGX_OK;
|
||||||
|
}
|
||||||
|
|
||||||
ccf = ngx_core_get_conf(cycle);
|
ccf = ngx_core_get_conf(cycle);
|
||||||
bcf = ngx_quic_bpf_get_conf(cycle);
|
bcf = ngx_quic_bpf_get_conf(cycle);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user