summaryrefslogtreecommitdiffhomepage
path: root/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'config.cpp')
-rw-r--r--config.cpp4
1 files changed, 2 insertions, 2 deletions
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<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;
}