mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #464, support origin cluster
This commit is contained in:
parent
2f09ec4353
commit
c70421e656
13 changed files with 171 additions and 39 deletions
|
@ -5195,13 +5195,8 @@ vector<string> SrsConfig::get_vhost_coworkers(string vhost)
|
|||
}
|
||||
|
||||
conf = conf->get("coworkers");
|
||||
for (int i = 0; i < (int)conf->directives.size(); i++) {
|
||||
SrsConfDirective* option = conf->directives[i];
|
||||
if (!option) {
|
||||
continue;
|
||||
}
|
||||
|
||||
coworkers.push_back(option->arg0());
|
||||
for (int i = 0; i < (int)conf->args.size(); i++) {
|
||||
coworkers.push_back(conf->args.at(i));
|
||||
}
|
||||
|
||||
return coworkers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue