chore: update docker stuff #1961

Merged
Sainan merged 16 commits from :docker-stuff into main 2025-05-02 15:06:37 -07:00
2 changed files with 12 additions and 10 deletions
Showing only changes of commit 98f6cfe30d - Show all commits

View File

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