winlin

fix the config bug.

@@ -5101,7 +5101,7 @@ bool SrsConfig::get_vhost_is_edge(SrsConfDirective* vhost) @@ -5101,7 +5101,7 @@ bool SrsConfig::get_vhost_is_edge(SrsConfDirective* vhost)
5101 } 5101 }
5102 5102
5103 conf = conf->get("cluster"); 5103 conf = conf->get("cluster");
5104 - if (!conf || conf->arg0().empty()) { 5104 + if (!conf) {
5105 return DEFAULT; 5105 return DEFAULT;
5106 } 5106 }
5107 5107
@@ -5121,7 +5121,7 @@ SrsConfDirective* SrsConfig::get_vhost_edge_origin(string vhost) @@ -5121,7 +5121,7 @@ SrsConfDirective* SrsConfig::get_vhost_edge_origin(string vhost)
5121 } 5121 }
5122 5122
5123 conf = conf->get("cluster"); 5123 conf = conf->get("cluster");
5124 - if (!conf || conf->arg0().empty()) { 5124 + if (!conf) {
5125 return NULL; 5125 return NULL;
5126 } 5126 }
5127 5127
@@ -5138,7 +5138,7 @@ bool SrsConfig::get_vhost_edge_token_traverse(string vhost) @@ -5138,7 +5138,7 @@ bool SrsConfig::get_vhost_edge_token_traverse(string vhost)
5138 } 5138 }
5139 5139
5140 conf = conf->get("cluster"); 5140 conf = conf->get("cluster");
5141 - if (!conf || conf->arg0().empty()) { 5141 + if (!conf) {
5142 return DEFAULT; 5142 return DEFAULT;
5143 } 5143 }
5144 5144
@@ -5160,7 +5160,7 @@ string SrsConfig::get_vhost_edge_transform_vhost(string vhost) @@ -5160,7 +5160,7 @@ string SrsConfig::get_vhost_edge_transform_vhost(string vhost)
5160 } 5160 }
5161 5161
5162 conf = conf->get("cluster"); 5162 conf = conf->get("cluster");
5163 - if (!conf || conf->arg0().empty()) { 5163 + if (!conf) {
5164 return DEFAULT; 5164 return DEFAULT;
5165 } 5165 }
5166 5166