remove outgoingAddressFamily

This commit is contained in:
Norm 2022-09-30 11:05:34 -04:00
parent 29164740b9
commit 8ca544c45d
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE
3 changed files with 2 additions and 13 deletions

View file

@ -93,9 +93,6 @@ redis:
# deliverJobMaxAttempts: 12
# inboxJobMaxAttempts: 8
# IP address family used for outgoing requests (ipv4, ipv6 or dual)
#outgoingAddressFamily: ipv4
# Syslog option
#syslog:
# host: localhost

View file

@ -1,10 +1,9 @@
import Logger from '@/services/logger.js';
import { IpFamily } from './types.js';
import config from './index.js';
const logger = new Logger('config:redis', 'gray', false);
function getRedisFamily(family?: IpFamily | number): number {
function getRedisFamily(family?: string | number): number {
const familyMap = {
ipv4: 4,
ipv6: 6,

View file

@ -1,8 +1,3 @@
/**
* IP address family
*/
export type IpFamily = 'ipv4' | 'ipv6' | 'dual';
/**
* Configuration options set up by the user
*/
@ -24,7 +19,7 @@ export type Source = {
redis: {
host: string;
port: number;
family?: number | IpFamily;
family?: number | 'dual' | 'ipv4' | 'ipv6';
pass: string;
db?: number;
prefix?: string;
@ -52,8 +47,6 @@ export type Source = {
id: string;
outgoingAddressFamily?: IpFamily;
deliverJobConcurrency?: number;
inboxJobConcurrency?: number;
deliverJobPerSec?: number;