mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
commit
81bf00f9bc
@ -12,7 +12,7 @@ namespace llarp
|
|||||||
std::string value = str;
|
std::string value = str;
|
||||||
std::transform(value.begin(), value.end(), value.begin(),
|
std::transform(value.begin(), value.end(), value.begin(),
|
||||||
[](char ch) -> char { return std::tolower(ch); });
|
[](char ch) -> char { return std::tolower(ch); });
|
||||||
return value == "no" || value == "false" || value == "0";
|
return value == "no" || value == "false" || value == "0" || value == "off";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
@ -21,7 +21,7 @@ namespace llarp
|
|||||||
std::string value = str;
|
std::string value = str;
|
||||||
std::transform(value.begin(), value.end(), value.begin(),
|
std::transform(value.begin(), value.end(), value.begin(),
|
||||||
[](char ch) -> char { return std::tolower(ch); });
|
[](char ch) -> char { return std::tolower(ch); });
|
||||||
return value == "yes" || value == "true" || value == "1";
|
return value == "yes" || value == "true" || value == "1" || value == "on";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user