mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-22 01:27:50 +08:00
Ignore the http connection which calling kick_sessions http api
This commit is contained in:
parent
189f787746
commit
f1923f0076
@ -958,6 +958,10 @@ void installWebApi() {
|
|||||||
if (!peer_ip.empty() && peer_ip != session->get_peer_ip()) {
|
if (!peer_ip.empty() && peer_ip != session->get_peer_ip()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (session->getIdentifier() == sender.getIdentifier()) {
|
||||||
|
// 忽略本http链接
|
||||||
|
return;
|
||||||
|
}
|
||||||
session_list.emplace_back(session);
|
session_list.emplace_back(session);
|
||||||
++count_hit;
|
++count_hit;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user