From ca9b3f27eb374d70757a14d6e13fbf1805ff886c Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Wed, 16 Aug 2017 18:41:33 +0200 Subject: [PATCH] test, win: fix IPv6 detection on Windows Add proper IPv6 detection on loopback device on Windows. PR-URL: https://github.com/nodejs/node/pull/14865 Reviewed-By: James M Snell Reviewed-By: Refael Ackermann --- test/common/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/index.js b/test/common/index.js index 8175474818b9dc..57058271f9c19e 100644 --- a/test/common/index.js +++ b/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';