mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
忽略本机访问的权限事件
This commit is contained in:
parent
555601506b
commit
eb19779012
@ -384,7 +384,7 @@ void installWebHook(){
|
||||
|
||||
|
||||
NoticeCenter::Instance().addListener(nullptr,Broadcast::kBroadcastHttpAccess,[](BroadcastHttpAccessArgs){
|
||||
if(!hook_enable || args._param_strs == hook_adminparams || hook_http_access.empty() ){
|
||||
if(!hook_enable || args._param_strs == hook_adminparams || hook_http_access.empty() || sender.get_peer_ip() == "127.0.0.1"){
|
||||
//这种情况下随便访问,先让他随便访问1分钟,之后可能开启鉴权
|
||||
invoker("/",60);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user