From 96ced27e5a8a3ef25fb9c294b29ef2453aade575 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 11 Jun 2024 09:32:29 +1000 Subject: [PATCH] fix(snownet): notify remote of invalidated relay candidate (#5303) When migrating to new relays, we need to notify the remote of our invalidated relay candidates and not just invalidate them locally. Related: #5283. --- rust/connlib/snownet/src/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/connlib/snownet/src/node.rs b/rust/connlib/snownet/src/node.rs index 4cd3f1cbf..264bf5274 100644 --- a/rust/connlib/snownet/src/node.rs +++ b/rust/connlib/snownet/src/node.rs @@ -514,7 +514,7 @@ where .current_candidates() .filter(|c| c.kind() == CandidateKind::Relayed) { - agent.invalidate_candidate(&candidate); + remove_local_candidate(id, agent, &candidate, &mut self.pending_events); } } }