diff src/event/ngx_event_quic.h @ 8629:feec2cc762f6 quic

QUIC: got rid of the c->quic field. Now QUIC connection is accessed via the c->udp field.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 10 Nov 2020 18:38:42 +0000
parents 45db1b5c1706
children 831d1960826f
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h
+++ b/src/event/ngx_event_quic.h
@@ -60,6 +60,8 @@
 
 #define NGX_QUIC_MAX_SERVER_IDS              8
 
+#define ngx_quic_get_connection(c)           ((ngx_quic_connection_t *)(c)->udp)
+
 
 typedef struct {
     /* configurable */