mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Squash: SRS 4.0, Stat the oc(origin cluster).
This commit is contained in:
parent
e127880ec2
commit
cd7e5a131e
6 changed files with 24 additions and 20 deletions
|
@ -4903,10 +4903,16 @@ string SrsConfig::get_vhost_edge_transform_vhost(string vhost)
|
|||
}
|
||||
|
||||
bool SrsConfig::get_vhost_origin_cluster(string vhost)
|
||||
{
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
return get_vhost_origin_cluster(conf);
|
||||
}
|
||||
|
||||
bool SrsConfig::get_vhost_origin_cluster(SrsConfDirective* vhost)
|
||||
{
|
||||
static bool DEFAULT = false;
|
||||
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
SrsConfDirective* conf = vhost;
|
||||
if (!conf) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue