Browse Source

Ignore ServerRemove packet

ipv6
Denis Drakhnia 1 year ago
parent
commit
518f8363bb
  1. 3
      src/master_server.rs

3
src/master_server.rs

@ -152,8 +152,7 @@ impl MasterServer {
self.remove_outdated_servers(); self.remove_outdated_servers();
} }
Packet::ServerRemove => { Packet::ServerRemove => {
// XXX: anyone can delete server from the list? /* ignore */
self.servers.remove(&from);
} }
Packet::QueryServers(region, filter) => match Filter::from_bytes(&filter) { Packet::QueryServers(region, filter) => match Filter::from_bytes(&filter) {
Ok(filter) => self.send_server_list(from, region, &filter)?, Ok(filter) => self.send_server_list(from, region, &filter)?,

Loading…
Cancel
Save