Fix IPv6 issue

This commit is contained in:
KMKoushik committed 2024-06-26 07:59:51 +10:00
1 parent 6d7fc773f9
commit 1beced823e
1 file changed
+3 -1
+3 -1
View File
@@ -5,7 +5,9 @@ export let connection: IORedis | null = null;
export const getRedis = () => {
if (!connection) {
connection = new IORedis(env.REDIS_URL, { maxRetriesPerRequest: null });
connection = new IORedis(`${env.REDIS_URL}?family=0`, {
maxRetriesPerRequest: null,
});
}
return connection;
};