From 5330a835484f16318b3b074f8cf8890203eb3393 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Feb 2023 18:57:09 +0100 Subject: Convert from webserver API to FCGI --- config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.cpp') diff --git a/config.cpp b/config.cpp index 44e0d36..f38da99 100644 --- a/config.cpp +++ b/config.cpp @@ -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("config.keywords", default_keywords); + m_keywords = tree.get("config.keywords", default_keywords); } catch (const std::exception& ex) { std::cerr << "Error reading config file " << config_filename << ". Using defaults." << std::endl; } -- cgit v1.2.3