Синхронизация бесед #6
@@ -38,6 +38,14 @@ public class Executor7Read extends PacketExecutor<Packet7Read> {
|
||||
client.disconnect(Failures.HANDSHAKE_NOT_COMPLETED);
|
||||
return;
|
||||
}
|
||||
if(!eciAuthentificate.getPublicKey().equals(fromPublicKey)){
|
||||
/**
|
||||
* Клиент пытается прочитать сообщения от имени того, кем не является
|
||||
*/
|
||||
client.disconnect(Failures.DATA_MISSMATCH);
|
||||
return;
|
||||
}
|
||||
|
||||
packet.setPrivateKey("");
|
||||
|
||||
if(toPublicKey.startsWith("#group:")){
|
||||
|
||||
Reference in New Issue
Block a user