mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Возможный фикс ipForwarding
This commit is contained in:
parent
798a5ddc7e
commit
77566cbd30
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue