From 0e3a5619f977c49431ef2e616b5cb0c00b15724c Mon Sep 17 00:00:00 2001 From: Gravit Date: Thu, 9 May 2019 21:25:35 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=B8=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20NettyIpForwardHandler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../launchserver/websocket/NettyIpForwardHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } }