[fix] 通道数据添加appKey、appSecret、originalIp验证

This commit is contained in:
wujiawei
2024-10-28 14:24:16 +08:00
parent b7d571ccc1
commit b2cd1eee0a
8 changed files with 9 additions and 7 deletions

View File

@ -2,6 +2,7 @@ package org.framework.lazy.cloud.network.heartbeat.common;
import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.framework.lazy.cloud.network.heartbeat.common.utils.ChannelAttributeKeyUtils;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
@ -36,6 +37,7 @@ public class ChannelContext {
if(existChannel.isActive()){
existChannelList.add(existChannel);
}else {
log.warn("close channel with client:{}", ChannelAttributeKeyUtils.getClientId(existChannel));
existChannel.close();
}
}