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. */
@Env('N8N_WORKER_SERVER_ADDRESS')
address: string = '0.0.0.0';
address: string = '::';
}
@Config

View File

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

View File

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

View File

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

View File

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