1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Allow config perf_stat and queue_length of rtc_server

This commit is contained in:
winlin 2021-05-17 18:23:54 +08:00
parent edbb9cb238
commit 4639510f1b

View file

@ -327,6 +327,23 @@ srs_error_t srs_config_transform_vhost(SrsConfDirective* root)
continue; continue;
} }
// SRS4.0, removed the support of configs:
// rtc_server { perf_stat; queue_length; }
if (dir->name == "rtc_server") {
std::vector<SrsConfDirective*>::iterator it;
for (it = dir->directives.begin(); it != dir->directives.end();) {
SrsConfDirective* conf = *it;
if (conf->name == "perf_stat" || conf->name == "queue_length") {
dir->directives.erase(it);
srs_freep(conf);
continue;
}
++it;
}
}
if (!dir->is_vhost()) { if (!dir->is_vhost()) {
continue; continue;
} }