Permalink
Browse files

test, win: fix IPv6 detection on Windows

Add proper IPv6 detection on loopback device on Windows.

PR-URL: #14865
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information...
bzoz authored and MylesBorins committed Aug 16, 2017
1 parent 1849c51 commit 4d6da3f770a54a686c5d6ad2aab5485a6b97c9d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/common/index.js
@@ -262,7 +262,7 @@ Object.defineProperty(exports, 'hasFipsCrypto', {
{
const iFaces = os.networkInterfaces();
const re = /lo/;
const re = exports.isWindows ? /Loopback Pseudo-Interface/ : /lo/;
exports.hasIPv6 = Object.keys(iFaces).some(function(name) {
return re.test(name) && iFaces[name].some(function(info) {
return info.family === 'IPv6';

0 comments on commit 4d6da3f

Please sign in to comment.