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

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

4 个文件 +7 -1
Modified config-vanilla.json +2 -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
Modified src/services/configService.ts +1 -0
@@ -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;
Modified src/services/tunablesService.ts +3 -0
@@ -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 };
Modified src/types/bootstrapperTypes.ts +1 -0
@@ -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 }