mirror of
https://github.com/anope/anope.git
synced 2026-07-08 14:23:14 +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:
@@ -329,9 +329,9 @@ public:
|
||||
{
|
||||
Configuration::Block *config = conf->GetModule(this);
|
||||
|
||||
const Anope::string certfile = config->Get<const Anope::string>("cert", "data/fullchain.pem");
|
||||
const Anope::string keyfile = config->Get<const Anope::string>("key", "data/privkey.pem");
|
||||
const Anope::string dhfile = config->Get<const Anope::string>("dh", "data/dhparams.pem");
|
||||
const Anope::string certfile = Anope::ExpandConfig(config->Get<const Anope::string>("cert", "fullchain.pem"));
|
||||
const Anope::string keyfile = Anope::ExpandConfig(config->Get<const Anope::string>("key", "privkey.pem"));
|
||||
const Anope::string dhfile = Anope::ExpandConfig(config->Get<const Anope::string>("dh", "dhparams.pem"));
|
||||
|
||||
CheckFile(certfile);
|
||||
CheckFile(keyfile);
|
||||
|
||||
Reference in New Issue
Block a user