Change streaming server to treat blank redis password as password-less auth (#14135)

Fixes #14131

Our `mastodon:setup` task defaults to a blank password rather than the
absence of password, but some versions of Redis reject blank password
authentication when authentication is possible without a password.

The Ruby code only uses the Redis password when it's not blank, so
do the same for the node.js part.
这个提交包含在:
ThibG 2020-06-24 22:25:23 +02:00 提交者 GitHub
父节点 bb9ca8a587
当前提交 ddcdddd6fc
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -118,7 +118,7 @@ const startWorker = (workerId) => {
host: process.env.REDIS_HOST || '127.0.0.1',
port: process.env.REDIS_PORT || 6379,
db: process.env.REDIS_DB || 0,
password: process.env.REDIS_PASSWORD,
password: process.env.REDIS_PASSWORD || undefined,
};
if (redisNamespace) {