mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +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