Add SSL macro in test program

This commit is contained in:
an-tao 2018-07-21 21:08:35 +08:00
parent 00e82ce5ba
commit 199dc1918f
1 changed files with 2 additions and 0 deletions

View File

@ -84,10 +84,12 @@ int main()
drogon::HttpAppFramework::instance().addListener("0.0.0.0",12345);
drogon::HttpAppFramework::instance().addListener("0.0.0.0",8080);
#ifdef USE_OPENSSL
//https
drogon::HttpAppFramework::instance().setSSLFiles("server.pem","server.pem");
drogon::HttpAppFramework::instance().addListener("0.0.0.0",4430,true);
drogon::HttpAppFramework::instance().addListener("0.0.0.0",4431,true);
#endif
drogon::HttpAppFramework::instance().setThreadNum(4);
trantor::Logger::setLogLevel(trantor::Logger::TRACE);
//class function