mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
ignore ingester when vhost disabled.
This commit is contained in:
parent
eac5440559
commit
041040b846
1 changed files with 5 additions and 0 deletions
|
@ -252,6 +252,11 @@ int SrsIngester::parse_ingesters(SrsConfDirective* vhost)
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
// when vhost disabled, ignore any ingesters.
|
||||
if (!_srs_config->get_vhost_enabled(vhost)) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::vector<SrsConfDirective*> ingesters = _srs_config->get_ingesters(vhost->arg0());
|
||||
|
||||
// create engine
|
||||
|
|
Loading…
Reference in a new issue