Исправлено неверное отображение IP адреса при подключении нового устройства

This commit is contained in:
RoyceDa
2026-02-23 13:50:26 +02:00
parent 800f87af07
commit b0f0986e0d

View File

@@ -184,7 +184,7 @@ public class Executor0Handshake extends PacketExecutor<Packet0Handshake> {
newDevicePacket.setDeviceId(deviceId);
newDevicePacket.setDeviceName(deviceName);
newDevicePacket.setDeviceOs(deviceOs);
newDevicePacket.setIpAddress(client.getSocket().getRemoteSocketAddress().getAddress().getHostAddress());
newDevicePacket.setIpAddress(client.getIpAddress());
clientManager.sendPacketToAuthorizedPK(publicKey, newDevicePacket);
/**
* Сбрасываем клиенту все старые подтверждения устройств, чтобы исключить спам запросами