diff src/event/ngx_event_quic.c @ 8344:e0abe17a2878 quic

Removed source/destination swap from the function creating header. The function now creates a header according to fileds provided in the "pkt" argument without applying any logic regarding sending side.
author Vladimir Homutov <vl@nginx.com>
date Mon, 20 Apr 2020 12:12:17 +0300
parents de715cdd4257
children 6481427ca3fc
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -2233,8 +2233,8 @@ ngx_quic_send_frames(ngx_connection_t *c
 
     pkt.log = c->log;
     pkt.level = start->level;
-    pkt.dcid = qc->dcid;
-    pkt.scid = qc->scid;
+    pkt.dcid = qc->scid;
+    pkt.scid = qc->dcid;
     pkt.payload = out;
 
     res.data = dst;