mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 20:16:54 +02:00
fix central docker launch without redis
This commit is contained in:
parent
c3a42bf590
commit
3b375b55c2
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ if [ "$ZT_USE_REDIS" == "true" ]; then
|
|||
}
|
||||
"
|
||||
else
|
||||
REDIS="\"redis\": {}"
|
||||
REDIS="\"redis\": null"
|
||||
fi
|
||||
|
||||
mkdir -p /var/lib/zerotier-one
|
||||
|
|
|
@ -1074,7 +1074,7 @@ public:
|
|||
if (redis.is_object() && _rc == NULL) {
|
||||
_rc = new RedisConfig;
|
||||
_rc->hostname = OSUtils::jsonString(redis["hostname"],"");
|
||||
_rc->port = redis["port"];
|
||||
_rc->port = OSUtils::jsonInt(redis["port"],0);
|
||||
_rc->password = OSUtils::jsonString(redis["password"],"");
|
||||
_rc->clusterMode = OSUtils::jsonBool(redis["clusterMode"], false);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue