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:
parent
edbb9cb238
commit
4639510f1b
1 changed files with 17 additions and 0 deletions
|
@ -327,6 +327,23 @@ srs_error_t srs_config_transform_vhost(SrsConfDirective* root)
|
|||
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()) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue