diff options
| author | Roland Reichwein <mail@reichwein.it> | 2023-02-12 18:57:09 +0100 | 
|---|---|---|
| committer | Roland Reichwein <mail@reichwein.it> | 2023-02-12 18:57:09 +0100 | 
| commit | 5330a835484f16318b3b074f8cf8890203eb3393 (patch) | |
| tree | 24eb06387206cca01da990937360ef946afacce3 /config.cpp | |
| parent | 92a14d375c8cd9dabc32ccb6dcbdf83321af535f (diff) | |
Convert from webserver API to FCGI
Diffstat (limited to 'config.cpp')
| -rw-r--r-- | config.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -16,7 +16,7 @@ namespace {   const std::string default_keywords{"blog, reichwein.it, weblog"};  } -Config::Config(const std::string& config_filename): +Config::Config(const std::filesystem::path& config_filename):   m_dataPath{default_datapath},   m_listenAddress{"::1"},   m_listenPort{9000}, @@ -41,7 +41,7 @@ Config::Config(const std::string& config_filename):    if (m_listenPort < 0 || m_listenPort > 65535)     throw std::runtime_error("Bad listen port: "s + std::to_string(m_listenPort)); -  m_keywords = tree.get<int>("config.keywords", default_keywords); +  m_keywords = tree.get<std::string>("config.keywords", default_keywords);   } catch (const std::exception& ex) {    std::cerr << "Error reading config file " << config_filename << ". Using defaults." << std::endl;   } | 
