mirror of
https://github.com/anope/anope.git
synced 2026-07-03 03:23:12 +02:00
Use paths relative to data/conf in the config file.
This was done in some places already but not consistently. Closes #349.
This commit is contained in:
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user