Connection tokens use big nonces, which are 24 bytes. I'm not sure where the hard-coded "8" came from. Maybe stale code, or copy/paste error. The expected length used in the error message should include NETCODE_CONNECT_TOKEN_NONCE_BYTES to match the if statement.
Connection tokens use big nonces, which are 24 bytes. I'm not sure where the hard-coded "8" came from. Maybe stale code, or copy/paste error. The expected length used in the error message should include
NETCODE_CONNECT_TOKEN_NONCE_BYTES
to match the if statement.