mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Исправление записи сообщения NettyIpForwardHandler
This commit is contained in:
parent
09cae122d1
commit
0e3a5619f9
1 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,11 @@ public NettyIpForwardHandler(NettyConnectContext context) {
|
|||
@Override
|
||||
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
|
||||
//super.channelRead(ctx, msg);
|
||||
if(context.ip != null) return;
|
||||
if(context.ip != null)
|
||||
{
|
||||
ctx.write(msg);
|
||||
return;
|
||||
}
|
||||
if(msg instanceof HttpRequest)
|
||||
{
|
||||
HttpRequest http = (HttpRequest) msg;
|
||||
|
@ -40,5 +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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue