mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-24 14:36:15 +02:00
Fix Windows compile error
This commit is contained in:
parent
a407e68df6
commit
29e267532a
2 changed files with 11 additions and 5 deletions
|
@ -88,9 +88,9 @@ Controller::Controller(boost::asio::io_context& io_context, const ClientSettings
|
|||
LOG(WARNING, LOG_TAG) << "Failed to load system certificates: " << ec << "\n";
|
||||
if (!settings.server.certificate->empty())
|
||||
{
|
||||
ssl_context_.load_verify_file(settings.server.certificate.value(), ec);
|
||||
ssl_context_.load_verify_file(settings.server.certificate.value().string(), ec);
|
||||
if (ec.failed())
|
||||
throw SnapException("Failed to load certificate: " + settings.server.certificate.value().native() + ": " + ec.message());
|
||||
throw SnapException("Failed to load certificate: " + settings.server.certificate.value().string() + ": " + ec.message());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue