1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

add on/off values

This commit is contained in:
Jeff Becker 2019-04-28 07:48:29 -04:00
parent 353021b671
commit 2332294258
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

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