fix: login failure on u29 heart of deimos and below (#1959)

Reviewed-on: OpenWF/SpaceNinjaServer#1959
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-05-02 04:03:42 -07:00 committed by Sainan
parent 8f8bc5b364
commit 35d5c01203
2 changed files with 12 additions and 10 deletions

View File

@ -110,17 +110,19 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
Groups: [], Groups: [],
IRC: config.myIrcAddresses ?? [myAddress], IRC: config.myIrcAddresses ?? [myAddress],
NRS: config.NRS, NRS: config.NRS,
DTLS: 99,
BuildLabel: buildLabel BuildLabel: buildLabel
}; };
if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) { if (version_compare(buildLabel, "2021.04.13.19.58") >= 0) {
resp.ClientType = account.ClientType; resp.DTLS = 99;
if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) { if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) {
resp.CrossPlatformAllowed = account.CrossPlatformAllowed; resp.ClientType = account.ClientType;
resp.HUB = `https://${myAddress}/api/`; if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId; resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) { resp.HUB = `https://${myAddress}/api/`;
resp.platformCDNs = [`https://${myAddress}/`]; resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
resp.platformCDNs = [`https://${myAddress}/`];
}
} }
} }
} }

View File

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