mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 22:07:49 +00:00
fix central docker launch without redis
This commit is contained in:
parent
c3a42bf590
commit
3b375b55c2
@ -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…
Reference in New Issue
Block a user