[fix] 添加代理流量监控

This commit is contained in:
wujiawei
2025-06-07 11:13:34 +08:00
parent 1a08fe64e9
commit e8383c78ad
31 changed files with 26 additions and 17 deletions

View File

@ -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);