mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
完善
This commit is contained in:
parent
9d7b2821b7
commit
9b7d62347e
@ -255,6 +255,7 @@ int start_main(int argc,char *argv[]) {
|
|||||||
//加载文件夹下的所有证书
|
//加载文件夹下的所有证书
|
||||||
File::scanDir(ssl_file,[](const string &path, bool isDir){
|
File::scanDir(ssl_file,[](const string &path, bool isDir){
|
||||||
if(!isDir){
|
if(!isDir){
|
||||||
|
//最后的一个证书会当做默认证书(客户端ssl握手时未指定主机)
|
||||||
SSL_Initor::Instance().loadCertificate(path.data());
|
SSL_Initor::Instance().loadCertificate(path.data());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user