mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-30 08:04:04 +00:00
fix central docker launch without redis
This commit is contained in:
parent
9c6ec2c52e
commit
27ce787fbd
@ -50,7 +50,7 @@ if [ "$ZT_USE_REDIS" == "true" ]; then
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
else
|
else
|
||||||
REDIS="\"redis\": {}"
|
REDIS="\"redis\": null"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /var/lib/zerotier-one
|
mkdir -p /var/lib/zerotier-one
|
||||||
|
@ -1071,7 +1071,7 @@ public:
|
|||||||
if (redis.is_object() && _rc == NULL) {
|
if (redis.is_object() && _rc == NULL) {
|
||||||
_rc = new RedisConfig;
|
_rc = new RedisConfig;
|
||||||
_rc->hostname = OSUtils::jsonString(redis["hostname"],"");
|
_rc->hostname = OSUtils::jsonString(redis["hostname"],"");
|
||||||
_rc->port = redis["port"];
|
_rc->port = OSUtils::jsonInt(redis["port"],0);
|
||||||
_rc->password = OSUtils::jsonString(redis["password"],"");
|
_rc->password = OSUtils::jsonString(redis["password"],"");
|
||||||
_rc->clusterMode = OSUtils::jsonBool(redis["clusterMode"], false);
|
_rc->clusterMode = OSUtils::jsonBool(redis["clusterMode"], false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user