feat: config refactoring #219
@ -1,4 +1,5 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
 | 
					  "myAddress": "localhost",
 | 
				
			||||||
  "autoCreateAccount": true,
 | 
					  "autoCreateAccount": true,
 | 
				
			||||||
  "buildLabel": "2024.05.03.11.35/g98E42og3EdWxS0UueO+PQ",
 | 
					  "buildLabel": "2024.05.03.11.35/g98E42og3EdWxS0UueO+PQ",
 | 
				
			||||||
  "matchmakingBuildId": "6945333874579955227",
 | 
					  "matchmakingBuildId": "6945333874579955227",
 | 
				
			||||||
 | 
				
			|||||||
@ -7,7 +7,7 @@ import { toLoginRequest } from "@/src/helpers/loginHelpers";
 | 
				
			|||||||
import { Account } from "@/src/models/loginModel";
 | 
					import { Account } from "@/src/models/loginModel";
 | 
				
			||||||
import { createAccount, isCorrectPassword } from "@/src/services/loginService";
 | 
					import { createAccount, isCorrectPassword } from "@/src/services/loginService";
 | 
				
			||||||
import { ILoginResponse } from "@/src/types/loginTypes";
 | 
					import { ILoginResponse } from "@/src/types/loginTypes";
 | 
				
			||||||
import { DTLS, groups, HUB, IRC, Nonce, NRS, platformCDNs } from "@/static/fixed_responses/login_static";
 | 
					import { DTLS, groups, HUB, Nonce, platformCDNs } from "@/static/fixed_responses/login_static";
 | 
				
			||||||
import { logger } from "@/src/utils/logger";
 | 
					import { logger } from "@/src/utils/logger";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
 | 
					// eslint-disable-next-line @typescript-eslint/no-misused-promises
 | 
				
			||||||
@ -39,9 +39,9 @@ const loginController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
                Groups: groups,
 | 
					                Groups: groups,
 | 
				
			||||||
                platformCDNs: platformCDNs,
 | 
					                platformCDNs: platformCDNs,
 | 
				
			||||||
                Nonce: Nonce,
 | 
					                Nonce: Nonce,
 | 
				
			||||||
                NRS: NRS,
 | 
					                NRS: [config.myAddress],
 | 
				
			||||||
                DTLS: DTLS,
 | 
					                DTLS: DTLS,
 | 
				
			||||||
                IRC: IRC,
 | 
					                IRC: [config.myAddress],
 | 
				
			||||||
                HUB: HUB,
 | 
					                HUB: HUB,
 | 
				
			||||||
                BuildLabel: config.buildLabel,
 | 
					                BuildLabel: config.buildLabel,
 | 
				
			||||||
                MatchmakingBuildId: config.matchmakingBuildId
 | 
					                MatchmakingBuildId: config.matchmakingBuildId
 | 
				
			||||||
@ -68,9 +68,9 @@ const loginController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
        Groups: groups,
 | 
					        Groups: groups,
 | 
				
			||||||
        platformCDNs: platformCDNs,
 | 
					        platformCDNs: platformCDNs,
 | 
				
			||||||
        Nonce: Nonce,
 | 
					        Nonce: Nonce,
 | 
				
			||||||
        NRS: NRS,
 | 
					        NRS: [config.myAddress],
 | 
				
			||||||
        DTLS: DTLS,
 | 
					        DTLS: DTLS,
 | 
				
			||||||
        IRC: IRC,
 | 
					        IRC: [config.myAddress],
 | 
				
			||||||
        HUB: HUB,
 | 
					        HUB: HUB,
 | 
				
			||||||
        BuildLabel: config.buildLabel,
 | 
					        BuildLabel: config.buildLabel,
 | 
				
			||||||
        MatchmakingBuildId: config.matchmakingBuildId
 | 
					        MatchmakingBuildId: config.matchmakingBuildId
 | 
				
			||||||
 | 
				
			|||||||
@ -24,10 +24,6 @@ export const platformCDNs = [
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const Nonce = 1231231233;
 | 
					export const Nonce = 1231231233;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const NRS = ["localhost"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export const DTLS = 99;
 | 
					export const DTLS = 99;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const IRC = ["localhost"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export const HUB = "https://arbiter.warframe.com/api/";
 | 
					export const HUB = "https://arbiter.warframe.com/api/";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user