禁止通过setServerConfig接口修改ffmpeg.bin配置选项

This commit is contained in:
xia-chu 2023-07-26 16:40:10 +08:00
parent 098046cb1d
commit 706c63c64b
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@
namespace FFmpeg {
extern const std::string kSnap;
extern const std::string kBin;
}
class FFmpegSnap {

View File

@ -657,6 +657,10 @@ void installWebApi() {
continue;
#endif
}
if (pr.first == FFmpeg::kBin) {
WarnL << "Configuration named " << FFmpeg::kBin << " is not allowed to be set by setServerConfig api.";
continue;
}
if (ini[pr.first] == pr.second) {
continue;
}