Отключена проверка в CheckServerRequest. Авторизация не теряется

This commit is contained in:
Gravit 2018-10-18 22:06:26 +07:00
parent b83666a584
commit 7f470ab3e3
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -26,8 +26,9 @@ public void reply() throws IOException {
String serverID = VerifyHelper.verifyServerID(input.readASCII(41)); // With minus sign String serverID = VerifyHelper.verifyServerID(input.readASCII(41)); // With minus sign
String client = input.readString(SerializeLimits.MAX_CLIENT); String client = input.readString(SerializeLimits.MAX_CLIENT);
debug("Username: %s, Server ID: %s", username, serverID); debug("Username: %s, Server ID: %s", username, serverID);
Client clientData = server.sessionManager.getClient(session); //Фитча оставлена до внедрения WebSockets
if(!clientData.isAuth || clientData.type != Client.Type.SERVER) { requestError("Assess denied"); return;} //Client clientData = server.sessionManager.getClient(session);
//if(!clientData.isAuth || clientData.type != Client.Type.SERVER) { requestError("Assess denied"); return;}
// Try check server with auth handler // Try check server with auth handler
UUID uuid; UUID uuid;
try { try {