mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(core): Start listening to IPv6 addresses as well by default (#15810)
This commit is contained in:
committed by
GitHub
parent
0fdeba52bb
commit
9f44f40745
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: '' },
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user