1
0
Fork 0
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:
winlin 2021-10-13 09:03:47 +08:00
parent e127880ec2
commit cd7e5a131e
6 changed files with 24 additions and 20 deletions

View file

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