返回提交历史
Modified
src/controllers/api/loginController.ts
+2
-2
Modified
src/services/configService.ts
+1
-0
XFEstudio/XFESpaceNinjaServer
feat: add optional myIrcAddresses config (#321)
c2a6892c
代码差异
2 个文件
+3
-2
@@ -43,7 +43,7 @@ const loginController: RequestHandler = async (request, response) => {
43
43
platformCDNs: platformCDNs,
44
44
NRS: [config.myAddress],
45
45
DTLS: DTLS,
46
IRC: [config.myAddress],
46
IRC: config.myIrcAddresses ?? [config.myAddress],
47
47
HUB: HUB,
48
48
BuildLabel: buildConfig.buildLabel,
49
49
MatchmakingBuildId: buildConfig.matchmakingBuildId
@@ -79,7 +79,7 @@ const loginController: RequestHandler = async (request, response) => {
79
79
platformCDNs: platformCDNs,
80
80
NRS: [config.myAddress],
81
81
DTLS: DTLS,
82
IRC: [config.myAddress],
82
IRC: config.myIrcAddresses ?? [config.myAddress],
83
83
HUB: HUB,
84
84
BuildLabel: buildConfig.buildLabel,
85
85
MatchmakingBuildId: buildConfig.matchmakingBuildId
@@ -24,6 +24,7 @@ interface IConfig {
24
24
myAddress: string;
25
25
httpPort?: number;
26
26
httpsPort?: number;
27
myIrcAddresses?: string[];
27
28
autoCreateAccount?: boolean;
28
29
skipStoryModeChoice?: boolean;
29
30
skipTutorial?: boolean;