summaryrefslogtreecommitdiff
path: root/modules/extra/ssl_openssl.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-19 15:39:41 +0000
committerSadie Powell <sadie@witchery.services>2024-03-19 15:51:55 +0000
commitbfed2e1bf5cfb250e17e91566546b38b4b9a34d8 (patch)
treeecf5ba2049ae1752cff533e060d2dce50983c04e /modules/extra/ssl_openssl.cpp
parente488f294a116224d8c7f89c6c4ebad2356ba7814 (diff)
Use paths relative to data/conf in the config file.
This was done in some places already but not consistently. Closes #349.
Diffstat (limited to 'modules/extra/ssl_openssl.cpp')
-rw-r--r--modules/extra/ssl_openssl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp
index a052752ae..ec81e6ccb 100644
--- a/modules/extra/ssl_openssl.cpp
+++ b/modules/extra/ssl_openssl.cpp
@@ -146,8 +146,8 @@ public:
{
Configuration::Block *config = conf->GetModule(this);
- this->certfile = config->Get<const Anope::string>("cert", "data/fullchain.pem");
- this->keyfile = config->Get<const Anope::string>("key", "data/privkey.pem");
+ this->certfile = Anope::ExpandConfig(config->Get<const Anope::string>("cert", "fullchain.pem"));
+ this->keyfile = Anope::ExpandConfig(config->Get<const Anope::string>("key", "privkey.pem"));
if (Anope::IsFile(this->certfile.c_str()))
{