Skip to content

Commit

Permalink
Fix support for IPv6 redis connections in streaming (mastodon#31229)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm authored Aug 2, 2024
1 parent f55099f commit 7490019
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions streaming/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 7490019

Please sign in to comment.