From d93f6e271699df25c25ec34ffb7fb034231939b3 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 10 Aug 2021 16:45:37 +0800 Subject: [PATCH] server.listen bind to ipv6 too --- server/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 8e256e6ac..54bbfa4fb 100644 --- a/server/server.js +++ b/server/server.js @@ -41,7 +41,8 @@ const args = require("args-parser")(process.argv); const version = require("../package.json").version; -// If host is omitted, the server will accept connections on the unspecified IPv6 address (::) when IPv6 is available, or the unspecified IPv4 address (0.0.0.0) otherwise. +// If host is omitted, the server will accept connections on the unspecified IPv6 address (::) when IPv6 is available and the unspecified IPv4 address (0.0.0.0) otherwise. +// Dual-stack support for (::) const hostname = process.env.HOST || args.host; const port = parseInt(process.env.PORT || args.port || 3001);