From 8a58dfdf132015fd55c173c385d59d9e34877c33 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 8 Jul 2025 14:44:56 +0300 Subject: [PATCH] fix up to date match condition --- crates/udp/src/swarm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/udp/src/swarm.rs b/crates/udp/src/swarm.rs index a3f1b6e..4e4ac13 100644 --- a/crates/udp/src/swarm.rs +++ b/crates/udp/src/swarm.rs @@ -189,7 +189,7 @@ impl TorrentMaps { if l != L { break; } - if info_hashes.iter().any(|i| i.0 != b[..l]) { + if !info_hashes.iter().any(|i| i.0 == b[..l]) { return Ok(false); } t += 1