This commit is contained in:
Jeff Becker 2019-05-03 10:07:17 -04:00
parent da5ba7793f
commit fc3bccb161
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace llarp
std::string value = str;
std::transform(value.begin(), value.end(), value.begin(),
[](char ch) -> char { return std::tolower(ch); });
return value == "no" || value == "false" || value == "0";
return value == "no" || value == "false" || value == "0" || value == "off";
}
bool
@ -21,7 +21,7 @@ namespace llarp
std::string value = str;
std::transform(value.begin(), value.end(), value.begin(),
[](char ch) -> char { return std::tolower(ch); });
return value == "yes" || value == "true" || value == "1";
return value == "yes" || value == "true" || value == "1" || value == "on";
}
bool