Fix server paths

This commit is contained in:
Lion Kortlepel 2021-12-06 15:08:01 +01:00
parent 2c115a2b2c
commit fe652cbf42
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -273,7 +273,7 @@ void Http::Server::THttpServerInstance::operator()() {
beammp_info("HTTP(S) Server started on port " + std::to_string(Application::Settings.HTTPServerPort));
std::unique_ptr<httplib::Server> HttpLibServerInstance;
if (Application::Settings.HTTPServerUseSSL) {
HttpLibServerInstance = std::make_unique<httplib::SSLServer>(Application::Settings.SSLCertPath.c_str(), Application::Settings.SSLKeyPath.c_str());
HttpLibServerInstance = std::make_unique<httplib::SSLServer>(Http::Server::THttpServerInstance::CertFilePath.c_str(), Http::Server::THttpServerInstance::KeyFilePath.c_str());
} else {
HttpLibServerInstance = std::make_unique<httplib::Server>();
}