Skip to content

Comments

Fix judge of custom server from findgamebycode#101

Open
NikoCat233 wants to merge 1 commit intoNuclearPowered:masterfrom
NikoCat233:Fix-matchmaking
Open

Fix judge of custom server from findgamebycode#101
NikoCat233 wants to merge 1 commit intoNuclearPowered:masterfrom
NikoCat233:Fix-matchmaking

Conversation

@NikoCat233
Copy link

Server issued by the new FindGameByCode can be different from the one set in ServerManager.

This means that if we find a game on officials, but ServerManager's region is set to a modded server, dtls nonce will be skipped, thus resulting in auth failure.

This pr attempts to ease the issue by logging the FindGameByCode response, record the ip and the region name and compare it on actual joining the server.

The code does not seem to fit in the current codebase so changes are welcome.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant