forked from OpenWF/SpaceNinjaServer
		
	feat: add optional myIrcAddresses config (#321)
This commit is contained in:
		
							parent
							
								
									be9ba026f7
								
							
						
					
					
						commit
						c2a6892c2a
					
				@ -43,7 +43,7 @@ const loginController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
                platformCDNs: platformCDNs,
 | 
					                platformCDNs: platformCDNs,
 | 
				
			||||||
                NRS: [config.myAddress],
 | 
					                NRS: [config.myAddress],
 | 
				
			||||||
                DTLS: DTLS,
 | 
					                DTLS: DTLS,
 | 
				
			||||||
                IRC: [config.myAddress],
 | 
					                IRC: config.myIrcAddresses ?? [config.myAddress],
 | 
				
			||||||
                HUB: HUB,
 | 
					                HUB: HUB,
 | 
				
			||||||
                BuildLabel: buildConfig.buildLabel,
 | 
					                BuildLabel: buildConfig.buildLabel,
 | 
				
			||||||
                MatchmakingBuildId: buildConfig.matchmakingBuildId
 | 
					                MatchmakingBuildId: buildConfig.matchmakingBuildId
 | 
				
			||||||
@ -79,7 +79,7 @@ const loginController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
        platformCDNs: platformCDNs,
 | 
					        platformCDNs: platformCDNs,
 | 
				
			||||||
        NRS: [config.myAddress],
 | 
					        NRS: [config.myAddress],
 | 
				
			||||||
        DTLS: DTLS,
 | 
					        DTLS: DTLS,
 | 
				
			||||||
        IRC: [config.myAddress],
 | 
					        IRC: config.myIrcAddresses ?? [config.myAddress],
 | 
				
			||||||
        HUB: HUB,
 | 
					        HUB: HUB,
 | 
				
			||||||
        BuildLabel: buildConfig.buildLabel,
 | 
					        BuildLabel: buildConfig.buildLabel,
 | 
				
			||||||
        MatchmakingBuildId: buildConfig.matchmakingBuildId
 | 
					        MatchmakingBuildId: buildConfig.matchmakingBuildId
 | 
				
			||||||
 | 
				
			|||||||
@ -24,6 +24,7 @@ interface IConfig {
 | 
				
			|||||||
    myAddress: string;
 | 
					    myAddress: string;
 | 
				
			||||||
    httpPort?: number;
 | 
					    httpPort?: number;
 | 
				
			||||||
    httpsPort?: number;
 | 
					    httpsPort?: number;
 | 
				
			||||||
 | 
					    myIrcAddresses?: string[];
 | 
				
			||||||
    autoCreateAccount?: boolean;
 | 
					    autoCreateAccount?: boolean;
 | 
				
			||||||
    skipStoryModeChoice?: boolean;
 | 
					    skipStoryModeChoice?: boolean;
 | 
				
			||||||
    skipTutorial?: boolean;
 | 
					    skipTutorial?: boolean;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user