Fix unexpected type for backend region

This commit is contained in:
SaltySnail
2026-07-04 19:38:07 +02:00
parent 569d46769a
commit 75d844d5a6
5 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -21,6 +21,7 @@
#include "Common.h"
#include "Env.h"
#include "LuaAPI.h"
#include "RegionHandler.h"
#include "TConnectionLimiter.h"
#include "THeartbeatThread.h"
#include "TLuaEngine.h"
@@ -458,7 +459,7 @@ std::shared_ptr<TClient> TNetwork::Authentication(TConnection&& RawConnection) {
unsigned int ResponseCode = 0;
AuthResStr = Http::POST(Application::GetBackendUrlForAuth() + Target, AuthReq.dump(), "application/json", &ResponseCode);
if (AuthResStr == Http::ErrorString || ResponseCode != 200) {
Application::TopLevelDomainFailed();
RegionHandler::TopLevelDomainFailed();
AuthResStr = Http::POST(Application::GetBackendUrlForAuth() + Target, AuthReq.dump(), "application/json", &ResponseCode);
}