mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Backport 92e2a6c86d
This commit is contained in:
parent
9d1118ea97
commit
f7c8d03131
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ public void invoke(String... args) {
|
||||||
WebSocketService service = server.nettyServerSocketHandler.nettyServer.service;
|
WebSocketService service = server.nettyServerSocketHandler.nettyServer.service;
|
||||||
service.channels.forEach((channel -> {
|
service.channels.forEach((channel -> {
|
||||||
WebSocketFrameHandler frameHandler = channel.pipeline().get(WebSocketFrameHandler.class);
|
WebSocketFrameHandler frameHandler = channel.pipeline().get(WebSocketFrameHandler.class);
|
||||||
|
if(frameHandler == null) {
|
||||||
|
LogHelper.info("Channel %s", IOHelper.getIP(channel.remoteAddress()));
|
||||||
|
return;
|
||||||
|
}
|
||||||
Client client = frameHandler.getClient();
|
Client client = frameHandler.getClient();
|
||||||
String ip = frameHandler.context.ip != null ? frameHandler.context.ip : IOHelper.getIP(channel.remoteAddress());
|
String ip = frameHandler.context.ip != null ? frameHandler.context.ip : IOHelper.getIP(channel.remoteAddress());
|
||||||
if (!client.isAuth)
|
if (!client.isAuth)
|
||||||
|
|
Loading…
Reference in a new issue