Fixed a regression of Hostname #2372

This commit is contained in:
SoftFever 2023-10-14 23:16:27 +08:00
parent a3200ad285
commit 53c416b819
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ public:
std::string get(const std::string &key) const
{ std::string value; this->get("app", key, value); return value; }
bool get_bool(const std::string &key) const
{ return this->get(key) == "true"; }
{ return this->get(key) == "true" || this->get(key) == "1"; }
void set(const std::string &section, const std::string &key, const std::string &value)
{
#ifndef NDEBUG