mirror of
https://github.com/mastodon/mastodon
synced 2024-11-27 14:28:24 +09:00
Fix support for IPv6 redis connections in streaming (#31229)
This commit is contained in:
parent
f55099fea3
commit
7490019535
@ -248,6 +248,10 @@ const redisConfigFromEnv = (env) => {
|
||||
const redisParams = {
|
||||
host: env.REDIS_HOST || '127.0.0.1',
|
||||
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,
|
||||
password: env.REDIS_PASSWORD || undefined,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user