fix: login failure on U31.5 angels of the zariman #1933
@ -100,7 +100,6 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
 | 
				
			|||||||
        DisplayName: account.DisplayName,
 | 
					        DisplayName: account.DisplayName,
 | 
				
			||||||
        CountryCode: account.CountryCode,
 | 
					        CountryCode: account.CountryCode,
 | 
				
			||||||
        ClientType: account.ClientType,
 | 
					        ClientType: account.ClientType,
 | 
				
			||||||
        CrossPlatformAllowed: account.CrossPlatformAllowed,
 | 
					 | 
				
			||||||
        ForceLogoutVersion: account.ForceLogoutVersion,
 | 
					        ForceLogoutVersion: account.ForceLogoutVersion,
 | 
				
			||||||
        AmazonAuthToken: account.AmazonAuthToken,
 | 
					        AmazonAuthToken: account.AmazonAuthToken,
 | 
				
			||||||
        AmazonRefreshToken: account.AmazonRefreshToken,
 | 
					        AmazonRefreshToken: account.AmazonRefreshToken,
 | 
				
			||||||
@ -109,14 +108,17 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
 | 
				
			|||||||
        Nonce: account.Nonce,
 | 
					        Nonce: account.Nonce,
 | 
				
			||||||
        Groups: [],
 | 
					        Groups: [],
 | 
				
			||||||
        IRC: config.myIrcAddresses ?? [myAddress],
 | 
					        IRC: config.myIrcAddresses ?? [myAddress],
 | 
				
			||||||
        HUB: `https://${myAddress}/api/`,
 | 
					 | 
				
			||||||
        NRS: config.NRS,
 | 
					        NRS: config.NRS,
 | 
				
			||||||
        DTLS: 99,
 | 
					        DTLS: 99,
 | 
				
			||||||
        BuildLabel: buildLabel,
 | 
					        BuildLabel: buildLabel
 | 
				
			||||||
        MatchmakingBuildId: buildConfig.matchmakingBuildId
 | 
					 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
 | 
					    if (version_compare(buildLabel, "2022.09.06.19.24") >= 0) {
 | 
				
			||||||
        resp.platformCDNs = [`https://${myAddress}/`];
 | 
					        resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
 | 
				
			||||||
 | 
					        resp.HUB = `https://${myAddress}/api/`;
 | 
				
			||||||
 | 
					        resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
 | 
				
			||||||
 | 
					        if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
 | 
				
			||||||
 | 
					            resp.platformCDNs = [`https://${myAddress}/`];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return resp;
 | 
					    return resp;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
@ -4,7 +4,7 @@ export interface IAccountAndLoginResponseCommons {
 | 
				
			|||||||
    DisplayName: string;
 | 
					    DisplayName: string;
 | 
				
			||||||
    CountryCode: string;
 | 
					    CountryCode: string;
 | 
				
			||||||
    ClientType: string;
 | 
					    ClientType: string;
 | 
				
			||||||
    CrossPlatformAllowed: boolean;
 | 
					    CrossPlatformAllowed?: boolean;
 | 
				
			||||||
    ForceLogoutVersion: number;
 | 
					    ForceLogoutVersion: number;
 | 
				
			||||||
    AmazonAuthToken?: string;
 | 
					    AmazonAuthToken?: string;
 | 
				
			||||||
    AmazonRefreshToken?: string;
 | 
					    AmazonRefreshToken?: string;
 | 
				
			||||||
@ -46,7 +46,7 @@ export interface ILoginResponse extends IAccountAndLoginResponseCommons {
 | 
				
			|||||||
    id: string;
 | 
					    id: string;
 | 
				
			||||||
    Groups: IGroup[];
 | 
					    Groups: IGroup[];
 | 
				
			||||||
    BuildLabel: string;
 | 
					    BuildLabel: string;
 | 
				
			||||||
    MatchmakingBuildId: string;
 | 
					    MatchmakingBuildId?: string;
 | 
				
			||||||
    platformCDNs?: string[];
 | 
					    platformCDNs?: string[];
 | 
				
			||||||
    NRS?: string[];
 | 
					    NRS?: string[];
 | 
				
			||||||
    DTLS: number;
 | 
					    DTLS: number;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user