diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/NettyIpForwardHandler.java b/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/NettyIpForwardHandler.java index ab9cb594..f0eb5331 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/NettyIpForwardHandler.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/NettyIpForwardHandler.java @@ -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); } }