mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-25 11:07: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()) {
|
||||
return;
|
||||
}
|
||||
if (session->getIdentifier() == sender.getIdentifier()) {
|
||||
// 忽略本http链接
|
||||
return;
|
||||
}
|
||||
session_list.emplace_back(session);
|
||||
++count_hit;
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user