lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
620 stars 65 forks source link

Make ConnectToken contents pub #112

Closed UkoeHB closed 9 months ago

UkoeHB commented 9 months ago

Problem

Since connect token contents are pub(crate), it isn't possible to validate the protocol id of a connect token on the client side, nor to use the token's server addresses to tailor your client socket to ipv4/ipv6.

Solution

Make the contents of ConnectToken pub.

lucaspoffo commented 9 months ago

Fixed by #116