优化虚拟主机相关

This commit is contained in:
xiongziliang
2019-05-29 09:24:02 +08:00
parent a603d7f1c3
commit c1b6df7bc7
2 changed files with 10 additions and 15 deletions

View File

@@ -239,6 +239,11 @@ void MediaInfo::parse(const string &url){
_vhost = DEFAULT_VHOST;
}
}
if(_vhost == "localhost"){
_vhost = DEFAULT_VHOST;
}
GET_CONFIG(bool,enableVhost,General::kEnableVhost);
if(!enableVhost){
_vhost = DEFAULT_VHOST;