mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-08-27 20:39:20 +00:00
Fix unexpected type for backend region
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user