From 77566cbd308b2e60c705750dc49f2a0aed24de53 Mon Sep 17 00:00:00 2001 From: Gravit Date: Thu, 9 May 2019 21:11:15 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=92=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6?= =?UTF-8?q?=D0=BD=D1=8B=D0=B9=20=D1=84=D0=B8=D0=BA=D1=81=20ipForwarding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gravit/launchserver/websocket/NettyIpForwardHandler.java | 3 ++- 1 file changed, 2 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 ccaecf98..3e907ddd 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/NettyIpForwardHandler.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/NettyIpForwardHandler.java @@ -17,7 +17,7 @@ public NettyIpForwardHandler(NettyConnectContext context) { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { - super.channelRead(ctx, msg); + //super.channelRead(ctx, msg); if(context.ip != null) return; if(msg instanceof DefaultHttpRequest) { @@ -36,6 +36,7 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception LogHelper.dev("Real IP address %s", realIP); context.ip = realIP; } + else LogHelper.error("IpForwarding error. Headers not found"); } else LogHelper.error("IpForwarding error. Real message class %s", msg.getClass().getName()); }