make sure value here is true, not just that the env var is set

This commit is contained in:
Grant Limberg 2022-06-13 15:44:35 -07:00
parent c6fc3560f2
commit 0ed339f19d
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -191,7 +191,7 @@ PostgreSQL::PostgreSQL(const Identity &myId, const char *path, int listenPort, R
Utils::unhex(ssoPskHex, _ssoPsk, sizeof(_ssoPsk));
}
const char *redisMemberStatus = getenv("ZT_REDIS_MEMBER_STATUS");
if (redisMemberStatus) {
if (redisMemberStatus && (strcmp(redisMemberStatus, "true") == 0)) {
_redisMemberStatus = true;
fprintf(stderr, "Using redis for member status\n");
}