mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-08 08:07:10 +02:00
MINOR: quic: Useless test about datagram destination addresses
There is no reason to check if the peer has modified the destination address of its connection. May be backported to 2.7.
This commit is contained in:
parent
e77f4306ba
commit
f676954f72
@ -7406,8 +7406,7 @@ int quic_dgram_parse(struct quic_dgram *dgram, struct quic_conn *from_qc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Detect QUIC connection migration. */
|
/* Detect QUIC connection migration. */
|
||||||
if (ipcmp(&qc->peer_addr, &dgram->saddr, 1) ||
|
if (ipcmp(&qc->peer_addr, &dgram->saddr, 1)) {
|
||||||
ipcmp(&qc->local_addr, &dgram->daddr, 1)) {
|
|
||||||
if (qc_handle_conn_migration(qc, &dgram->saddr, &dgram->daddr)) {
|
if (qc_handle_conn_migration(qc, &dgram->saddr, &dgram->daddr)) {
|
||||||
/* Skip the entire datagram. */
|
/* Skip the entire datagram. */
|
||||||
TRACE_ERROR("error during connection migration, datagram dropped", QUIC_EV_CONN_LPKT, qc);
|
TRACE_ERROR("error during connection migration, datagram dropped", QUIC_EV_CONN_LPKT, qc);
|
||||||
|
Loading…
Reference in New Issue
Block a user