mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 19:20:53 +08:00
重构变量名
This commit is contained in:
parent
80ddf018d9
commit
ccd96f676c
@ -220,7 +220,7 @@ int start_main(int argc,char *argv[]) {
|
|||||||
g_ini_file = cmd_main["config"];
|
g_ini_file = cmd_main["config"];
|
||||||
string ssl_file = cmd_main["ssl"];
|
string ssl_file = cmd_main["ssl"];
|
||||||
int threads = cmd_main["threads"];
|
int threads = cmd_main["threads"];
|
||||||
std::string mid = cmd_main["mserverid"];
|
std::string msid = cmd_main["mserverid"];
|
||||||
|
|
||||||
//设置日志
|
//设置日志
|
||||||
Logger::Instance().add(std::make_shared<ConsoleChannel>("ConsoleChannel", logLevel));
|
Logger::Instance().add(std::make_shared<ConsoleChannel>("ConsoleChannel", logLevel));
|
||||||
@ -247,8 +247,8 @@ int start_main(int argc,char *argv[]) {
|
|||||||
loadIniConfig(g_ini_file.data());
|
loadIniConfig(g_ini_file.data());
|
||||||
|
|
||||||
//如果自定义了mediaserverid,在这里覆盖配置文件
|
//如果自定义了mediaserverid,在这里覆盖配置文件
|
||||||
if(!mid.empty()) {
|
if(!msid.empty()) {
|
||||||
mINI::Instance()[General::kMediaServerId] = mid;
|
mINI::Instance()[General::kMediaServerId] = msid;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!File::is_dir(ssl_file.data())){
|
if(!File::is_dir(ssl_file.data())){
|
||||||
|
Loading…
Reference in New Issue
Block a user