From 7e24cf014cf03529e9630775de79d240f069d7d7 Mon Sep 17 00:00:00 2001 From: Gijs de Jong <14833076+oxkitsune@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:23:22 +0200 Subject: [PATCH] Set length range for `verify_token` to (4, 16) (#143) Notchian servers [ALWAYS](https://wiki.vg/Protocol#Encryption_Request) have a `verify_token` length of 4. This PR updates the range of the `BoundedArray` to support this. --- src/protocol/packets/s2c.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/packets/s2c.rs b/src/protocol/packets/s2c.rs index 82d6dc6..b71296e 100644 --- a/src/protocol/packets/s2c.rs +++ b/src/protocol/packets/s2c.rs @@ -41,7 +41,7 @@ pub mod login { server_id: BoundedString<0, 20>, /// The RSA public key public_key: Vec, - verify_token: BoundedArray, + verify_token: BoundedArray, } }