Bool config string stream must be in true or 1 (#9292)

This commit is contained in:
Lingxuan Zuo
2020-07-03 20:37:19 +08:00
committed by GitHub
parent 726c4cd6d4
commit 7a2d7964d8
+2 -1
View File
@@ -58,7 +58,8 @@ class RayConfig {
value.end(), \
value.begin(), \
::tolower); \
name##_ = value == "true"; \
name##_ = value == "true" || \
value == "1"; \
} else { \
std::istringstream stream(pair.second); \
stream >> name##_; \