Skip to content

Commit 4d6da3f

Browse files
bzozMylesBorins
authored andcommitted
test, win: fix IPv6 detection on Windows
Add proper IPv6 detection on loopback device on Windows. PR-URL: #14865 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 1849c51 commit 4d6da3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Object.defineProperty(exports, 'hasFipsCrypto', {
262262

263263
{
264264
const iFaces = os.networkInterfaces();
265-
const re = /lo/;
265+
const re = exports.isWindows ? /Loopback Pseudo-Interface/ : /lo/;
266266
exports.hasIPv6 = Object.keys(iFaces).some(function(name) {
267267
return re.test(name) && iFaces[name].some(function(info) {
268268
return info.family === 'IPv6';

0 commit comments

Comments
 (0)