mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(gateway): don't return error when client disconnected (#7504)
When a client disconnects, we clear up the connection on the gateway. There might still be packets arriving from resources that we then cannot route. This isn't worth returning an error.
This commit is contained in:
@@ -90,10 +90,10 @@ impl GatewayState {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
let peer = self
|
||||
.peers
|
||||
.peer_by_ip_mut(dst)
|
||||
.context("Couldn't find connection by IP")?;
|
||||
let Some(peer) = self.peers.peer_by_ip_mut(dst) else {
|
||||
tracing::debug!(%dst, "Unknown client, perhaps already disconnected?");
|
||||
return Ok(None);
|
||||
};
|
||||
let cid = peer.id();
|
||||
|
||||
let packet = peer
|
||||
|
||||
Reference in New Issue
Block a user