From 4ef66d8e1ea3a04cf64bd9748e4979970740563d Mon Sep 17 00:00:00 2001 From: Fernando van Loenhout Date: Tue, 31 Oct 2017 13:20:13 +0100 Subject: [PATCH] Make package IPv6 ready At the moment, the program does not recognise `::1` as a localhost address, this commit addresses this --- lib/util/cmd.helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/cmd.helper.js b/lib/util/cmd.helper.js index ca3ac8efb8..e2664b7f74 100644 --- a/lib/util/cmd.helper.js +++ b/lib/util/cmd.helper.js @@ -53,7 +53,7 @@ exports.handle = program => { program.connectionLimit = 10; - if (program.host === 'localhost' || program.host === '127.0.0.1') { + if (program.host === 'localhost' || program.host === '127.0.0.1' || program.host === '::1') { program.dynamic = 1 } //console.log(program.rawArgs);