mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add atc_auto to disable or enable auto detect atc
This commit is contained in:
parent
30bb3ff704
commit
fc501b050b
5 changed files with 31 additions and 6 deletions
|
@ -1654,7 +1654,7 @@ bool SrsConfig::get_atc(string vhost)
|
|||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
||||
if (!conf) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
conf = conf->get("atc");
|
||||
|
@ -1665,6 +1665,22 @@ bool SrsConfig::get_atc(string vhost)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool SrsConfig::get_atc_auto(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
||||
if (!conf) {
|
||||
return true;
|
||||
}
|
||||
|
||||
conf = conf->get("atc_auto");
|
||||
if (conf && conf->arg0() == "off") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
double SrsConfig::get_queue_length(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue