Фикс киков с сервера
All checks were successful
Build rosetta-wss / build (push) Successful in 3m30s

This commit is contained in:
RoyceDa
2026-04-04 18:49:39 +02:00
parent 20dd5933d9
commit 76a007ff42
2 changed files with 1 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ public class Executor26SignalPeer extends PacketExecutor<Packet26SignalPeer> {
client.disconnect(Failures.HANDSHAKE_NOT_COMPLETED);
return;
}
if(!src.equals(eciAuthentificate.getPublicKey()) && authentificatedTypes.contains(type)) {
if(src != null && !src.equals(eciAuthentificate.getPublicKey()) && authentificatedTypes.contains(type)) {
/**
* Если src в пакете не совпадает с авторизованным PK клиента, то это может означать, что клиент пытается
* отправить сигнал от другого пользователя, отключаем его от сервера.