chore: fix unable to login in U13 (#2989)
All checks were successful
Build / build (push) Successful in 1m14s
Build Docker image / docker (push) Successful in 2m44s

Reviewed-on: https://www.onlyg.it/OpenWF/SpaceNinjaServer/pulls/2989
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit was merged in pull request #2989.
This commit is contained in:
2025-11-05 08:01:31 -08:00
committed by Sainan
parent 65138b64fc
commit b8d0924f0f

View File

@@ -114,11 +114,11 @@ const createLoginResponse = (
Nonce: account.Nonce,
BuildLabel: buildLabel
};
if (version_compare(buildLabel, "2014.10.24.08.24") >= 0) {
// U15 and up
if (version_compare(buildLabel, "2014.04.10.17.47") >= 0) {
// U13 and up
resp.CountryCode = account.CountryCode;
} else {
// U8
// U12 and down
resp.NatHash =
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
resp.SteamId = "0";