diff --git a/proxy-client/src/main/java/org/fengfei/lanproxy/client/handlers/ClientChannelHandler.java b/proxy-client/src/main/java/org/fengfei/lanproxy/client/handlers/ClientChannelHandler.java index b6a9bcd..74c538f 100644 --- a/proxy-client/src/main/java/org/fengfei/lanproxy/client/handlers/ClientChannelHandler.java +++ b/proxy-client/src/main/java/org/fengfei/lanproxy/client/handlers/ClientChannelHandler.java @@ -49,10 +49,10 @@ public class ClientChannelHandler extends SimpleChannelInboundHandler { buf.readBytes(bytes); String userId = ProxyChannelManager.getUserChannelUserId(userChannel); ProxyMessage proxyMessage = new ProxyMessage(); - proxyMessage.setType(ProxyMessage.TYPE_TRANSFER); + proxyMessage.setType(ProxyMessage.P_TYPE_TRANSFER); proxyMessage.setUri(userId); proxyMessage.setData(bytes); proxyChannel.writeAndFlush(proxyMessage); @@ -124,7 +124,7 @@ public class UserChannelHandler extends SimpleChannelInboundHandler { // 通知代理客户端,用户连接可写状态 String userId = ProxyChannelManager.getUserChannelUserId(userChannel); ProxyMessage proxyMessage = new ProxyMessage(); - proxyMessage.setType(ProxyMessage.TYPE_WRITE_CONTROL); + proxyMessage.setType(ProxyMessage.C_TYPE_WRITE_CONTROL); proxyMessage.setUri(userId); proxyMessage.setData(userChannel.isWritable() ? new byte[] { 0x01 } : new byte[] { 0x00 }); cmdChannel.writeAndFlush(proxyMessage);