mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
优化代码
This commit is contained in:
parent
0d42aab9e7
commit
f628985037
@ -488,7 +488,7 @@ void installWebApi() {
|
|||||||
string &peer_ip = allArgs["peer_ip"];
|
string &peer_ip = allArgs["peer_ip"];
|
||||||
|
|
||||||
SessionMap::Instance().for_each_session([&](const string &id,const TcpSession::Ptr &session){
|
SessionMap::Instance().for_each_session([&](const string &id,const TcpSession::Ptr &session){
|
||||||
if(local_port != API::Success && local_port != session->get_local_port()){
|
if(local_port != 0 && local_port != session->get_local_port()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!peer_ip.empty() && peer_ip != session->get_peer_ip()){
|
if(!peer_ip.empty() && peer_ip != session->get_peer_ip()){
|
||||||
|
Loading…
Reference in New Issue
Block a user