fix: login failure on u29 heart of deimos and below
All checks were successful
Build / build (push) Successful in 1m39s
Build / build (pull_request) Successful in 1m18s

This commit is contained in:
Sainan 2025-05-01 23:31:28 +02:00
parent 8f8bc5b364
commit 76f07eb593
2 changed files with 12 additions and 10 deletions

View File

@ -110,9 +110,10 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
Groups: [],
IRC: config.myIrcAddresses ?? [myAddress],
NRS: config.NRS,
DTLS: 99,
BuildLabel: buildLabel
};
if (version_compare(buildLabel, "2021.05.25.09.41") >= 0) {
resp.DTLS = 99;
if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) {
resp.ClientType = account.ClientType;
if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
@ -124,5 +125,6 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
}
}
}
}
return resp;
};

View File

@ -50,7 +50,7 @@ export interface ILoginResponse extends IAccountAndLoginResponseCommons {
MatchmakingBuildId?: string;
platformCDNs?: string[];
NRS?: string[];
DTLS: number;
DTLS?: number;
IRC: string[];
HUB?: string;
}