diff options
author | Vladimir Homutov <vl@nginx.com> | 2020-10-01 10:04:35 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2020-10-01 10:04:35 +0300 |
commit | 0f843cfb74dd4dab7bff4d9a0f7e73b8b8cb61f0 (patch) | |
tree | 83f084a7d73a8dc5fc7183d7946fb548f405aeb5 /src/stream/ngx_stream_handler.c | |
parent | f797a8a5b5a2012b0cae9745f05386b628365cb7 (diff) | |
download | nginx-0f843cfb74dd4dab7bff4d9a0f7e73b8b8cb61f0.tar.gz nginx-0f843cfb74dd4dab7bff4d9a0f7e73b8b8cb61f0.zip |
QUIC: moved ssl configuration pointer to quic configuration.
The ssl configuration is obtained at config time and saved for future use.
Diffstat (limited to 'src/stream/ngx_stream_handler.c')
-rw-r--r-- | src/stream/ngx_stream_handler.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/stream/ngx_stream_handler.c b/src/stream/ngx_stream_handler.c index 2b0848a67..33f7bc191 100644 --- a/src/stream/ngx_stream_handler.c +++ b/src/stream/ngx_stream_handler.c @@ -118,18 +118,14 @@ ngx_stream_init_connection(ngx_connection_t *c) #if (NGX_STREAM_QUIC) if (addr_conf->quic) { - ngx_quic_conf_t *qcf; - ngx_stream_ssl_conf_t *scf; + ngx_quic_conf_t *qcf; if (c->qs == NULL) { c->log->connection = c->number; qcf = ngx_stream_get_module_srv_conf(addr_conf->ctx, ngx_stream_quic_module); - scf = ngx_stream_get_module_srv_conf(addr_conf->ctx, - ngx_stream_ssl_module); - - ngx_quic_run(c, &scf->ssl, qcf); + ngx_quic_run(c, qcf); return; } } |