feat(core): Start listening to IPv6 addresses as well by default (#15810)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-05-28 19:43:49 +02:00
committed by GitHub
parent 0fdeba52bb
commit 9f44f40745
5 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ class HealthConfig {
/** IP address for worker server to listen on. */ /** IP address for worker server to listen on. */
@Env('N8N_WORKER_SERVER_ADDRESS') @Env('N8N_WORKER_SERVER_ADDRESS')
address: string = '0.0.0.0'; address: string = '::';
} }
@Config @Config

View File

@@ -96,7 +96,7 @@ export class GlobalConfig {
/** IP address n8n should listen on */ /** IP address n8n should listen on */
@Env('N8N_LISTEN_ADDRESS') @Env('N8N_LISTEN_ADDRESS')
listen_address: string = '0.0.0.0'; listen_address: string = '::';
/** HTTP Protocol via which n8n can be reached */ /** HTTP Protocol via which n8n can be reached */
@Env('N8N_PROTOCOL', protocolSchema) @Env('N8N_PROTOCOL', protocolSchema)

View File

@@ -25,7 +25,7 @@ describe('GlobalConfig', () => {
path: '/', path: '/',
host: 'localhost', host: 'localhost',
port: 5678, port: 5678,
listen_address: '0.0.0.0', listen_address: '::',
protocol: 'http', protocol: 'http',
auth: { auth: {
cookie: { cookie: {
@@ -196,7 +196,7 @@ describe('GlobalConfig', () => {
health: { health: {
active: false, active: false,
port: 5678, port: 5678,
address: '0.0.0.0', address: '::',
}, },
bull: { bull: {
redis: { redis: {

View File

@@ -48,7 +48,7 @@ describe('WorkerServer', () => {
beforeEach(() => { beforeEach(() => {
globalConfig = mock<GlobalConfig>({ globalConfig = mock<GlobalConfig>({
queue: { queue: {
health: { active: true, port: 5678, address: '0.0.0.0' }, health: { active: true, port: 5678, address: '::' },
}, },
credentials: { credentials: {
overwrite: { endpoint: '' }, overwrite: { endpoint: '' },

View File

@@ -13,7 +13,7 @@ describe('UserService', () => {
host: 'localhost', host: 'localhost',
path: '/', path: '/',
port: 5678, port: 5678,
listen_address: '0.0.0.0', listen_address: '::',
protocol: 'http', protocol: 'http',
}); });
const urlService = new UrlService(globalConfig); const urlService = new UrlService(globalConfig);