Loading src/httpd.cpp +4 −2 Changes for src/httpd.cpp: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -216,7 +216,8 @@ libhttppp::HttpD::HttpD(int argc, char** argv) { std::map<std::string, netplus::ssl::CertificateBundle> certs; certs[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(certs, httpaddr, port, maxconnections, -1); _certBundle = certs; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); _ServerSocket = std::move(ss); }else{ Loading Loading @@ -281,7 +282,8 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections std::map<std::string, netplus::ssl::CertificateBundle> certs; certs[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(certs, httpaddr, port, maxconnections, -1); _certBundle = certs; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); _ServerSocket = std::move(ss); }else{ Loading src/httpd.h +2 −0 Changes for src/httpd.h: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <netplus/socket.h> #include <netplus/eventapi.h> #include <map> #include "http.h" #include "exception.h" Loading Loading @@ -69,6 +70,7 @@ namespace libhttppp { bool _fileServer; std::unique_ptr<netplus::socket> _ServerSocket; std::map<std::string, netplus::ssl::CertificateBundle> _certBundle; HTTPException _httpexception; }; }; Loading
src/httpd.cpp +4 −2 Changes for src/httpd.cpp: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -216,7 +216,8 @@ libhttppp::HttpD::HttpD(int argc, char** argv) { std::map<std::string, netplus::ssl::CertificateBundle> certs; certs[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(certs, httpaddr, port, maxconnections, -1); _certBundle = certs; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); _ServerSocket = std::move(ss); }else{ Loading Loading @@ -281,7 +282,8 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections std::map<std::string, netplus::ssl::CertificateBundle> certs; certs[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(certs, httpaddr, port, maxconnections, -1); _certBundle = certs; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); _ServerSocket = std::move(ss); }else{ Loading
src/httpd.h +2 −0 Changes for src/httpd.h: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <netplus/socket.h> #include <netplus/eventapi.h> #include <map> #include "http.h" #include "exception.h" Loading Loading @@ -69,6 +70,7 @@ namespace libhttppp { bool _fileServer; std::unique_ptr<netplus::socket> _ServerSocket; std::map<std::string, netplus::ssl::CertificateBundle> _certBundle; HTTPException _httpexception; }; };