mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-11-24 00:47:21 +08:00
fix(api): 避免在getServerConfig响应中泄露密钥信息
This commit is contained in:
@@ -859,6 +859,9 @@ void installWebApi() {
|
||||
CHECK_SECRET();
|
||||
Value obj;
|
||||
for (auto &pr : mINI::Instance()) {
|
||||
if (pr.first == API::kSecret) {
|
||||
continue;
|
||||
}
|
||||
obj[pr.first] = (string &) pr.second;
|
||||
}
|
||||
val["data"].append(obj);
|
||||
|
||||
Reference in New Issue
Block a user