mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 18:35:05 +08:00
[fix] 添加代理流量监控
This commit is contained in:
@ -14,6 +14,7 @@ import org.framework.lazy.cloud.network.heartbeat.common.adapter.ChannelTypeAdap
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.constant.ProxyMessageType;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.utils.ChannelAttributeKeyUtils;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
@ -76,6 +77,8 @@ public class NettyHttpClientProxyServerProxySocket {
|
||||
// other clientId
|
||||
nettyProxyMsg.setClientId(clientId);
|
||||
|
||||
String hostAddress = InetAddress.getLocalHost().getHostAddress();
|
||||
nettyProxyMsg.setOriginalIpString(hostAddress);
|
||||
nettyProxyMsg.setClientTargetIp(targetIp);
|
||||
nettyProxyMsg.setClientTargetPort(targetPort);
|
||||
nettyProxyMsg.setData(data);
|
||||
|
Reference in New Issue
Block a user