From 17bb31cab1fa395c7ed24ce85daf554e270f0899 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 4 Dec 2015 15:22:13 +0800 Subject: [PATCH] fix the config bug. --- trunk/src/app/srs_app_config.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 80965d3dd..0d509f587 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -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; }