Fix a small typo in proto.cc

Also add long-forms "yes" and "no" as valid options
This commit is contained in:
Michael D
2021-12-07 18:10:53 +01:00
parent 36c2263675
commit aa3b0a117a

View File

@@ -141,11 +141,13 @@ void setProtoFieldFromString(ProtoField& protoField, const std::string& value)
static const std::map<std::string, bool> boolvalues = {
{ "false", false },
{ "f", false },
{ "no", false },
{ "n", false },
{ "0", false },
{ "true", true },
{ "t", true },
{ "n", true },
{ "yes", true },
{ "y", true },
{ "1", true },
};