XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

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

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1959 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

35d5c012
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +12 -10
Modified src/controllers/api/loginController.ts +11 -9
@@ -110,17 +110,19 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
110 110 Groups: [],
111 111 IRC: config.myIrcAddresses ?? [myAddress],
112 112 NRS: config.NRS,
113 DTLS: 99,
114 113 BuildLabel: buildLabel
115 114 };
116 if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) {
117 resp.ClientType = account.ClientType;
118 if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
119 resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
120 resp.HUB = `https://${myAddress}/api/`;
121 resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
122 if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
123 resp.platformCDNs = [`https://${myAddress}/`];
115 if (version_compare(buildLabel, "2021.04.13.19.58") >= 0) {
116 resp.DTLS = 99;
117 if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) {
118 resp.ClientType = account.ClientType;
119 if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
120 resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
121 resp.HUB = `https://${myAddress}/api/`;
122 resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
123 if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
124 resp.platformCDNs = [`https://${myAddress}/`];
125 }
124 126 }
125 127 }
126 128 }
Modified src/types/loginTypes.ts +1 -1
@@ -50,7 +50,7 @@ export interface ILoginResponse extends IAccountAndLoginResponseCommons {
50 50 MatchmakingBuildId?: string;
51 51 platformCDNs?: string[];
52 52 NRS?: string[];
53 DTLS: number;
53 DTLS?: number;
54 54 IRC: string[];
55 55 HUB?: string;
56 56 }