mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
添加访问http目录权限事件
This commit is contained in:
@@ -667,6 +667,12 @@ void installWebApi() {
|
||||
val["close"] = true;
|
||||
});
|
||||
|
||||
API_REGIST(hook,on_http_access,{
|
||||
//能访问根目录10分钟
|
||||
val["path"] = "/";
|
||||
val["second"] = 10 * 60;
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user