返回提交历史
Modified
config-vanilla.json
+1
-0
Modified
src/controllers/api/loginController.ts
+1
-1
Modified
src/services/configService.ts
+1
-0
XFEstudio/XFESpaceNinjaServer
feat: dtls config (#3075)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3075 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
946c0516
代码差异
3 个文件
+3
-1
@@ -12,6 +12,7 @@
12
12
"ircAddress": null,
13
13
"hubAddress": null,
14
14
"nrsAddress": null,
15
"dtls": null,
15
16
"administratorNames": [],
16
17
"autoCreateAccount": true,
17
18
"skipTutorial": false,
@@ -153,7 +153,7 @@ const createLoginResponse = (
153
153
resp.Groups = [];
154
154
}
155
155
if (version_compare(buildLabel, "2021.04.13.19.58") >= 0) {
156
resp.DTLS = 0; // bit 0 enables DTLS. if enabled, additional bits can be set, e.g. bit 2 to enable logging. on live, the value is 99.
156
resp.DTLS = config.dtls ?? 0; // bit 0 enables DTLS. if enabled, additional bits can be set, e.g. bit 2 to enable logging. on live, the value is 99.
157
157
}
158
158
if (version_compare(buildLabel, "2022.04.29.12.53") >= 0) {
159
159
resp.ClientType = account.ClientType;
@@ -19,6 +19,7 @@ export interface IConfig {
19
19
ircAddress?: string;
20
20
hubAddress?: string;
21
21
nrsAddress?: string;
22
dtls?: number;
22
23
administratorNames?: string[];
23
24
autoCreateAccount?: boolean;
24
25
skipTutorial?: boolean;