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

for #319, refine the config forward.

This commit is contained in:
winlin 2015-08-30 07:59:25 +08:00
parent bc24c0407b
commit 6bd05f9cfc
7 changed files with 119 additions and 45 deletions

View file

@ -2235,7 +2235,11 @@ int SrsSource::create_forwarders()
{
int ret = ERROR_SUCCESS;
SrsConfDirective* conf = _srs_config->get_forward(_req->vhost);
if (_srs_config->get_forward_enabled(_req->vhost)) {
return ret;
}
SrsConfDirective* conf = _srs_config->get_forwards(_req->vhost);
for (int i = 0; conf && i < (int)conf->args.size(); i++) {
std::string forward_server = conf->args.at(i);