summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2022-06-13 15:44:35 -0700
committerGrant Limberg <[email protected]>2022-06-13 15:44:35 -0700
commit0ed339f19d30961b9a6b8b8bc484d85db8faf2c1 (patch)
tree680587ca2cb4f7b4fd8ad7994828143cd6041d61 /controller/PostgreSQL.cpp
parentc6fc3560f2029a6ebec4a60e2ab9959fe0bbf17d (diff)
make sure value here is true, not just that the env var is set
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 76b20877..86327137 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -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");
}