bzflag
bzflag copied to clipboard
Request an authentication token only at join, and using the GETTOKEN action instead of the LIST action.
Previously, we've used the LIST action to request a player authentication token. This was often wasteful because it requested the entire list of servers as well. We could use the token that was provided along with the server list when joining a game server, so it did at times consolidate two requests down to one. However, we're now aiming to restrict a game token to a specific game server host/port instead of the player's IP address so that we can handle CGNAT.
This change causes the token to only be requested during the join process. Additionally, when paired with the new bzfls3, no token will be generated during the LIST action.