fix(gateway): filter packets not destined for a client (#7417)

This causes unnecessary logs higher up the stack.
This commit is contained in:
Thomas Eizinger
2024-12-01 15:59:56 +00:00
committed by GitHub
parent 8e967674fc
commit a3e3d4cac5

View File

@@ -88,7 +88,9 @@ impl GatewayState {
) -> Result<Option<snownet::EncryptedPacket>> {
let dst = packet.destination();
anyhow::ensure!(is_client(dst), "Packet not destined for a client");
if !is_client(dst) {
return Ok(None);
}
let peer = self
.peers