mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 22:41:30 +11:00
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.
This commit is contained in:
parent
e80bbc22b3
commit
7e24cf014c
|
@ -41,7 +41,7 @@ pub mod login {
|
|||
server_id: BoundedString<0, 20>,
|
||||
/// The RSA public key
|
||||
public_key: Vec<u8>,
|
||||
verify_token: BoundedArray<u8, 16, 16>,
|
||||
verify_token: BoundedArray<u8, 4, 16>,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue