From d7e33170d39d277a885ba9163fed46c2aa64b228 Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Thu, 29 Aug 2024 17:59:32 +0300 Subject: [PATCH] query: compile fix --- query/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query/src/main.rs b/query/src/main.rs index f82de15..dda1e8c 100644 --- a/query/src/main.rs +++ b/query/src/main.rs @@ -265,7 +265,7 @@ impl<'a> Scan<'a> { let mut buf = [0; 512]; let packet = game::QueryServers { region: server::Region::RestOfTheWorld, - last: SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), 0), + last: SocketAddr::from((Ipv4Addr::UNSPECIFIED, 0)), filter: self.cli.filter.as_str(), }; let n = packet.encode(&mut buf)?; @@ -306,7 +306,7 @@ impl<'a> Scan<'a> { if self.is_master(&from) { if let Ok(packet) = master::QueryServersResponse::decode(&buf[..n]) { if self.check_key(&from, packet.key) { - set.extend(packet.iter()); + set.extend(packet.iter::()); } } else { eprintln!(