-
Notifications
You must be signed in to change notification settings - Fork 124
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
Move player auth to CServer::ConnectClient
#548
Conversation
Could you provide a detailed test scenario for me to test your PR? |
how to test this
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code mostly looks good, just a couple of things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, confirmed working in testing.
Merging based on reviews. |
This reverts commit 17217a3.
Reverted in #610 as it made it trivial to crash a server by just running |
Fixes bots crashing servers when they are the first to connect to it. Also moves player auth to
CServer::ConnectClient
. This allows the removal ofiNextPlayerUid
andpNextPlayerToken
which were the cause of issues previously since they were not initialized by bots.I have tested this quickly and it worked for me :)