mirror of https://github.com/tootsuite/mastodon
Fix support for IPv6 redis connections in streaming (#31229)
parent
f55099fea3
commit
7490019535
|
@ -248,6 +248,10 @@ const redisConfigFromEnv = (env) => {
|
||||||
const redisParams = {
|
const redisParams = {
|
||||||
host: env.REDIS_HOST || '127.0.0.1',
|
host: env.REDIS_HOST || '127.0.0.1',
|
||||||
port: redisPort,
|
port: redisPort,
|
||||||
|
// Force support for both IPv6 and IPv4, by default ioredis sets this to 4,
|
||||||
|
// only allowing IPv4 connections:
|
||||||
|
// https://github.com/redis/ioredis/issues/1576
|
||||||
|
family: 0,
|
||||||
db: redisDatabase,
|
db: redisDatabase,
|
||||||
password: env.REDIS_PASSWORD || undefined,
|
password: env.REDIS_PASSWORD || undefined,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue