mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the config bug.
This commit is contained in:
parent
eec2c34b5c
commit
17bb31cab1
1 changed files with 4 additions and 4 deletions
|
@ -5101,7 +5101,7 @@ bool SrsConfig::get_vhost_is_edge(SrsConfDirective* vhost)
|
|||
}
|
||||
|
||||
conf = conf->get("cluster");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
if (!conf) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -5121,7 +5121,7 @@ SrsConfDirective* SrsConfig::get_vhost_edge_origin(string vhost)
|
|||
}
|
||||
|
||||
conf = conf->get("cluster");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
if (!conf) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -5138,7 +5138,7 @@ bool SrsConfig::get_vhost_edge_token_traverse(string vhost)
|
|||
}
|
||||
|
||||
conf = conf->get("cluster");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
if (!conf) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
||||
|
@ -5160,7 +5160,7 @@ string SrsConfig::get_vhost_edge_transform_vhost(string vhost)
|
|||
}
|
||||
|
||||
conf = conf->get("cluster");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
if (!conf) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue