chore: fix unable to login in U13 #2989

Merged
Sainan merged 1 commits from u13 into main 2025-11-05 08:01:31 -08:00

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";