From 199dc1918f1d1da769bb91b9845ffc7904646857 Mon Sep 17 00:00:00 2001 From: an-tao <20741618@qq.com> Date: Sat, 21 Jul 2018 21:08:35 +0800 Subject: [PATCH] Add SSL macro in test program --- examples/simple_example/main.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/simple_example/main.cc b/examples/simple_example/main.cc index 2b565f43..646530e3 100755 --- a/examples/simple_example/main.cc +++ b/examples/simple_example/main.cc @@ -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