diff options
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; } |