From 8d9284c239616e9523f0edbef193009b8717ebea Mon Sep 17 00:00:00 2001 From: a1batross Date: Tue, 26 Dec 2023 16:49:19 +0100 Subject: [PATCH] protocol: server: ignore legacy product key in ServerAdd packet --- protocol/src/server.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/src/server.rs b/protocol/src/server.rs index ce42496..325808f 100644 --- a/protocol/src/server.rs +++ b/protocol/src/server.rs @@ -322,6 +322,7 @@ where b"players" => ret.players = cur.get_key_value()?, b"max" => ret.max = cur.get_key_value()?, b"gamedir" => ret.gamedir = cur.get_key_value()?, + b"product" => { let _ = cur.get_key_value::>()?; }, // legacy key, ignore b"map" => ret.map = cur.get_key_value()?, b"type" => ret.server_type = cur.get_key_value()?, b"os" => ret.os = cur.get_key_value()?,