mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 03:21:08 +00: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
1 changed files with 8 additions and 0 deletions
|
|
@ -130,6 +130,14 @@ ngx_quic_bpf_module_init(ngx_cycle_t *cycle)
|
|||
ngx_pool_cleanup_t *cln;
|
||||
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);
|
||||
bcf = ngx_quic_bpf_get_conf(cycle);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue