From 1e10d394bb18c9d4b13ae356d34d69d9de17b4c1 Mon Sep 17 00:00:00 2001 From: JonasGhost Date: Wed, 11 Aug 2021 07:57:01 +0200 Subject: [PATCH] Default to dual stack interface binding --- docs/environment-variables.rst | 8 ++++---- lib/config.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/environment-variables.rst b/docs/environment-variables.rst index 70cbec3..c6c657c 100644 --- a/docs/environment-variables.rst +++ b/docs/environment-variables.rst @@ -64,7 +64,7 @@ CWMP_PORT CWMP_INTERFACE The network interface that genieacs-cwmp binds to. - Default: ``0.0.0.0`` + Default: ``::`` CWMP_SSL_CERT Path to certificate file. If omitted, non-secure HTTP will be used. @@ -102,7 +102,7 @@ NBI_PORT NBI_INTERFACE The network interface that genieacs-nbi binds to. - Default: ``0.0.0.0`` + Default: ``::`` NBI_SSL_CERT Path to certificate file. If omitted, non-secure HTTP will be used. @@ -140,7 +140,7 @@ FS_PORT FS_INTERFACE The network interface that genieacs-fs binds to. - Default: ``0.0.0.0`` + Default: ``::`` FS_SSL_CERT Path to certificate file. If omitted, non-secure HTTP will be used. @@ -186,7 +186,7 @@ UI_PORT UI_INTERFACE The network interface that genieacs-ui binds to. - Default: ``0.0.0.0`` + Default: ``::`` UI_SSL_CERT Path to certificate file. If omitted, non-secure HTTP will be used. diff --git a/lib/config.ts b/lib/config.ts index 3186f4e..69b55f1 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -43,7 +43,7 @@ const options = { CWMP_WORKER_PROCESSES: { type: "int", default: 0 }, CWMP_PORT: { type: "int", default: 7547 }, - CWMP_INTERFACE: { type: "string", default: "0.0.0.0" }, + CWMP_INTERFACE: { type: "string", default: "::" }, CWMP_SSL_CERT: { type: "string", default: "" }, CWMP_SSL_KEY: { type: "string", default: "" }, CWMP_LOG_FILE: { type: "path", default: "" }, @@ -51,7 +51,7 @@ const options = { NBI_WORKER_PROCESSES: { type: "int", default: 0 }, NBI_PORT: { type: "int", default: 7557 }, - NBI_INTERFACE: { type: "string", default: "0.0.0.0" }, + NBI_INTERFACE: { type: "string", default: "::" }, NBI_SSL_CERT: { type: "string", default: "" }, NBI_SSL_KEY: { type: "string", default: "" }, NBI_LOG_FILE: { type: "path", default: "" }, @@ -59,7 +59,7 @@ const options = { FS_WORKER_PROCESSES: { type: "int", default: 0 }, FS_PORT: { type: "int", default: 7567 }, - FS_INTERFACE: { type: "string", default: "0.0.0.0" }, + FS_INTERFACE: { type: "string", default: "::" }, FS_SSL_CERT: { type: "string", default: "" }, FS_SSL_KEY: { type: "string", default: "" }, FS_URL_PREFIX: { type: "string", default: "" }, @@ -68,7 +68,7 @@ const options = { UI_WORKER_PROCESSES: { type: "int", default: 0 }, UI_PORT: { type: "int", default: 3000 }, - UI_INTERFACE: { type: "string", default: "0.0.0.0" }, + UI_INTERFACE: { type: "string", default: "::" }, UI_SSL_CERT: { type: "string", default: "" }, UI_SSL_KEY: { type: "string", default: "" }, UI_LOG_FILE: { type: "path", default: "" },