From eb4ffe6fce59a1bdfaf0b0ee8b3b67af7c5a3d08 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 8175474818..57058271f9 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';