Commit ce07cb22 authored by AfirSraftGarrier's avatar AfirSraftGarrier

格式并加些打印

parent 7cbb902a
......@@ -38,7 +38,6 @@ public class DeviceServerHandler extends SimpleChannelInboundHandler<Object> {
@Override
protected void channelRead0(ChannelHandlerContext ctx, Object msg) {
log.info("come read...");
SocketChannel channel = (SocketChannel) ctx.channel();
InetSocketAddress socketAddr = (InetSocketAddress) ctx.channel().remoteAddress();
String remoteIp = socketAddr.getHostString();
......@@ -60,7 +59,7 @@ public class DeviceServerHandler extends SimpleChannelInboundHandler<Object> {
}
}
// TODO 以下为正式代码
// 以下为正式代码
if (auth == false) {
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