Browse Source

Make package IPv6 ready

At the moment, the program does not recognise `::1` as a localhost address, this commit addresses this
pull/1/head
Fernando van Loenhout 7 years ago committed by GitHub
parent
commit
4ef66d8e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/util/cmd.helper.js

2
lib/util/cmd.helper.js

@ -53,7 +53,7 @@ exports.handle = program => {
program.connectionLimit = 10; 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 program.dynamic = 1
} }
//console.log(program.rawArgs); //console.log(program.rawArgs);

Loading…
Cancel
Save