mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-08-27 20:39:20 +00:00
Remove restricted region
This commit is contained in:
@@ -457,6 +457,10 @@ 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(true);
|
||||
AuthResStr = Http::POST(Application::GetBackendUrlForAuth() + Target, AuthReq.dump(), "application/json", &ResponseCode);
|
||||
}
|
||||
|
||||
} catch (const std::exception& e) {
|
||||
beammp_debugf("Invalid json sent by client, kicking: {}", e.what());
|
||||
|
||||
Reference in New Issue
Block a user