-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: several connection logic issues #906
Fixed: several connection logic issues #906
Conversation
uifdev
commented
Mar 31, 2024
- Clients weren't kicked if the client version doesn't match the server version.
- Clients were flagged as logged in to the game regardless of the result of OnPeerConnect, meaning they wouldn't be dropped in the event of a failure.
I don't think these changes make any sense. A kick for an incorrect version will be executed one way or another due to the return of nullptr. Regarding the fact that clients were marked as entering the game, this does not pose any problem. One way or another, if the player does not take the necessary actions, he will be kicked lower. |
No, it won't. This PR fixes precisely that bug. Don't comment if you can't read or understand the code. @Hual Re-added kick calls as per your suggestion, so invalid clients get kicked ASAP. |
Syncing raknet here, since it's related. changes are from this PR: openmultiplayer/RakNet#22 |
7d65932