1
0
Fork 0
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:
winlin 2016-01-11 13:11:14 +08:00
parent eac5440559
commit 041040b846

View file

@ -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