返回提交历史
Modified
config-vanilla.json
+2
-1
Modified
src/services/configService.ts
+1
-0
Modified
src/services/tunablesService.ts
+3
-0
Modified
src/types/bootstrapperTypes.ts
+1
-0
XFEstudio/XFESpaceNinjaServer
feat: udpProxyUpstream tunable (#3169)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3169 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
173b14da
代码差异
4 个文件
+7
-1
@@ -77,7 +77,8 @@
77
77
"prohibitFreecam": false,
78
78
"prohibitTeleport": false,
79
79
"prohibitScripts": false,
80
"motd": null
80
"motd": null,
81
"udpProxyUpstream": false
81
82
},
82
83
"dev": {
83
84
"keepVendorsExpired": false
@@ -86,6 +86,7 @@ export interface IConfig {
86
86
prohibitTeleport?: boolean;
87
87
prohibitScripts?: boolean;
88
88
motd?: string;
89
udpProxyUpstream?: string;
89
90
};
90
91
dev?: {
91
92
keepVendorsExpired?: boolean;
@@ -40,5 +40,8 @@ export const getTunablesForClient = (clientAddress: string): ITunables => {
40
40
if (config.tunables?.motd) {
41
41
tunables.motd = config.tunables.motd;
42
42
}
43
if (config.tunables?.udpProxyUpstream) {
44
tunables.udp_proxy_upstream = config.tunables.udpProxyUpstream;
45
}
43
46
return tunables;
44
47
};
@@ -9,4 +9,5 @@ export interface ITunables {
9
9
motd?: string;
10
10
token?: string;
11
11
irc?: string;
12
udp_proxy_upstream?: string;
12
13
}