mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Неправильного вывода IP командой clients. Closes #411.
This commit is contained in:
parent
d98c6c39c5
commit
ea299c4fea
2 changed files with 1 additions and 3 deletions
|
@ -5,8 +5,6 @@
|
|||
import java.util.Map;
|
||||
|
||||
public abstract class Command extends pro.gravit.utils.command.Command {
|
||||
|
||||
|
||||
protected final LaunchServer server;
|
||||
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public void invoke(String... args) {
|
|||
service.channels.forEach((channel -> {
|
||||
WebSocketFrameHandler frameHandler = channel.pipeline().get(WebSocketFrameHandler.class);
|
||||
Client client = frameHandler.getClient();
|
||||
String ip = IOHelper.getIP(channel.remoteAddress());
|
||||
String ip = frameHandler.context.ip != null ? frameHandler.context.ip : IOHelper.getIP(channel.remoteAddress());
|
||||
if (!client.isAuth)
|
||||
LogHelper.info("Channel %s | connectUUID %s | checkSign %s", ip, frameHandler.getConnectUUID(), client.checkSign ? "true" : "false");
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue