Commit 7cbb902a authored by AfirSraftGarrier's avatar AfirSraftGarrier

格式并加些打印

parent 2cfcb480
...@@ -52,10 +52,8 @@ public class DeviceServerHandler extends SimpleChannelInboundHandler<Object> { ...@@ -52,10 +52,8 @@ public class DeviceServerHandler extends SimpleChannelInboundHandler<Object> {
boolean auth = false; boolean auth = false;
if (cmdInt == Consts.CMD_LICENSE) { if (cmdInt == Consts.CMD_LICENSE) {
log.info("come auth...");
auth = handlerCheckAuth(channel, remoteIp, remotePort, protocol); auth = handlerCheckAuth(channel, remoteIp, remotePort, protocol);
} else { } else {
log.info("no auth...");
auth = handlerCheckAuthStatus(channel, remoteIp, remotePort, protocol); auth = handlerCheckAuthStatus(channel, remoteIp, remotePort, protocol);
if (auth) { if (auth) {
handlerForward(channel, remoteIp, remotePort, protocol); handlerForward(channel, remoteIp, remotePort, protocol);
...@@ -64,7 +62,6 @@ public class DeviceServerHandler extends SimpleChannelInboundHandler<Object> { ...@@ -64,7 +62,6 @@ public class DeviceServerHandler extends SimpleChannelInboundHandler<Object> {
// TODO 以下为正式代码 // TODO 以下为正式代码
if (auth == false) { if (auth == false) {
log.info("close...");
channel.close(); channel.close();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment