Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 7821: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 |
comparison
equal
deleted
inserted
replaced
7820:de715cdd4257 | 7821:e0abe17a2878 |
---|---|
2231 | 2231 |
2232 ngx_quic_set_packet_number(&pkt, ctx); | 2232 ngx_quic_set_packet_number(&pkt, ctx); |
2233 | 2233 |
2234 pkt.log = c->log; | 2234 pkt.log = c->log; |
2235 pkt.level = start->level; | 2235 pkt.level = start->level; |
2236 pkt.dcid = qc->dcid; | 2236 pkt.dcid = qc->scid; |
2237 pkt.scid = qc->scid; | 2237 pkt.scid = qc->dcid; |
2238 pkt.payload = out; | 2238 pkt.payload = out; |
2239 | 2239 |
2240 res.data = dst; | 2240 res.data = dst; |
2241 | 2241 |
2242 if (ngx_quic_encrypt(&pkt, c->ssl->connection, &res) != NGX_OK) { | 2242 if (ngx_quic_encrypt(&pkt, c->ssl->connection, &res) != NGX_OK) { |