mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Исправление записи сообщения NettyIpForwardHandler
This commit is contained in:
parent
0e3a5619f9
commit
8fe01853a2
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
|
|||
//super.channelRead(ctx, msg);
|
||||
if(context.ip != null)
|
||||
{
|
||||
ctx.write(msg);
|
||||
ctx.writeAndFlush(msg);
|
||||
return;
|
||||
}
|
||||
if(msg instanceof HttpRequest)
|
||||
|
@ -44,6 +44,6 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
|
|||
else LogHelper.error("IpForwarding error. Headers not found");
|
||||
}
|
||||
else LogHelper.error("IpForwarding error. Real message class %s", msg.getClass().getName());
|
||||
ctx.write(msg);
|
||||
ctx.writeAndFlush(msg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue