]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed client certificates verification in stream.
authorVladimir Homutov <vl@nginx.com>
Wed, 23 Jun 2021 10:22:00 +0000 (13:22 +0300)
committerVladimir Homutov <vl@nginx.com>
Wed, 23 Jun 2021 10:22:00 +0000 (13:22 +0300)
The stream session requires 'ssl' flag to be set in order to perform
certificate verification.

src/stream/ngx_stream_handler.c

index c5b2e54a24d8a3ad0de592069c46186381eea06b..f9030335f8828c928050d2b64b9b40d8010b804c 100644 (file)
@@ -146,6 +146,10 @@ ngx_stream_init_connection(ngx_connection_t *c)
     s->ssl = addr_conf->ssl;
 #endif
 
+#if (NGX_STREAM_QUIC)
+    s->ssl |= addr_conf->quic;
+#endif
+
     if (c->buffer) {
         s->received += c->buffer->last - c->buffer->pos;
     }