mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(connlib): only debug-assert non-retransmitted DNS queries (#10136)
When we receive the same TCP DNS query twice, we currently wrongly hit a debug assert.
This commit is contained in:
@@ -1357,7 +1357,11 @@ impl ClientState {
|
||||
.tcp_dns_streams_by_upstream_and_query_id
|
||||
.insert((server, query_id), (query.local, query.remote));
|
||||
|
||||
debug_assert!(existing.is_none(), "Query IDs should be unique");
|
||||
if let Some((existing_local, existing_remote)) = existing
|
||||
&& (existing_local != query.local || existing_remote != query.remote)
|
||||
{
|
||||
debug_assert!(false, "Query IDs should be unique");
|
||||
}
|
||||
}
|
||||
|
||||
fn maybe_update_tun_routes(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user