From 9b7d62347e95e24b6b1f2eeeab799aaea5cae472 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 8 Nov 2019 15:26:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/main.cpp b/server/main.cpp index d38fc835..82fbd0b9 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -255,6 +255,7 @@ int start_main(int argc,char *argv[]) { //加载文件夹下的所有证书 File::scanDir(ssl_file,[](const string &path, bool isDir){ if(!isDir){ + //最后的一个证书会当做默认证书(客户端ssl握手时未指定主机) SSL_Initor::Instance().loadCertificate(path.data()); } return true;