Ignore the http connection which calling kick_sessions http api

This commit is contained in:
xiongziliang 2023-12-17 18:13:51 +08:00
parent 189f787746
commit f1923f0076

View File

@ -958,6 +958,10 @@ void installWebApi() {
if (!peer_ip.empty() && peer_ip != session->get_peer_ip()) {
return;
}
if (session->getIdentifier() == sender.getIdentifier()) {
// 忽略本http链接
return;
}
session_list.emplace_back(session);
++count_hit;
});