0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-03 06:08:52 +02:00

fixup! ircd: Move and improve socket listener device.

This commit is contained in:
Jason Volk 2017-04-02 21:01:37 -07:00
parent bcccddbf3f
commit 397d1dd3dd

View file

@ -116,7 +116,11 @@ try
if(opts.has("ssl.certificate.file.pem")) if(opts.has("ssl.certificate.file.pem"))
{ {
const std::string filename{opts["ssl.certificate.file.pem"]}; const std::string filename
{
unquote(opts["ssl.certificate.file.pem"])
};
ssl.use_certificate_file(filename, asio::ssl::context::pem); ssl.use_certificate_file(filename, asio::ssl::context::pem);
log.info("%s using certificate file '%s'", log.info("%s using certificate file '%s'",
std::string(*this), std::string(*this),
@ -125,7 +129,11 @@ try
if(opts.has("ssl.private_key.file.pem")) if(opts.has("ssl.private_key.file.pem"))
{ {
const std::string filename{opts["ssl.private_key.file.pem"]}; const std::string filename
{
unquote(opts["ssl.private_key.file.pem"])
};
ssl.use_private_key_file(filename, asio::ssl::context::pem); ssl.use_private_key_file(filename, asio::ssl::context::pem);
log.info("%s using private key file '%s'", log.info("%s using private key file '%s'",
std::string(*this), std::string(*this),
@ -134,7 +142,7 @@ try
a.listen(backlog); a.listen(backlog);
// Allows main() to run and print its log message // Allow main() to run and print its log message
ctx::yield(); ctx::yield();
} }
catch(const boost::system::system_error &e) catch(const boost::system::system_error &e)