忽略无效ssl证书

This commit is contained in:
xiongziliang 2019-05-30 09:21:45 +08:00
parent a317ff8614
commit 422a0ce86e
2 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ int main(int argc,char *argv[]) {
//信任某个自签名证书
SSL_Initor::Instance().trustCertificate(ssl_file.data());
//不忽略无效证书证书(例如自签名或过期证书)
SSL_Initor::Instance().ignoreInvalidCertificate(false);
SSL_Initor::Instance().ignoreInvalidCertificate(true);
uint16_t shellPort = mINI::Instance()[Shell::kPort];
uint16_t rtspPort = mINI::Instance()[Rtsp::kPort];

Binary file not shown.