[FIX] Исправление записи сообщения NettyIpForwardHandler

This commit is contained in:
Gravit 2019-05-09 21:34:44 +07:00
parent 0e3a5619f9
commit 8fe01853a2
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -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);
}
}