From 351943f541ce749d09a4e1da15354b137060c0d6 Mon Sep 17 00:00:00 2001 From: Shen Chang Date: Tue, 20 Aug 2024 14:52:08 +0800 Subject: [PATCH] fix(ip.js): wsl2 has scope global lo --- lib/ip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ip.js b/lib/ip.js index 9022443..49b9fff 100644 --- a/lib/ip.js +++ b/lib/ip.js @@ -410,7 +410,7 @@ ip.address = function (name, family) { // const addresses = interfaces[nic].filter((details) => { details.family = _normalizeFamily(details.family); - if (details.family !== family || ip.isLoopback(details.address)) { + if (details.family !== family || ip.isLoopback(details.address) || details.internal) { return false; } if (!name) { return true;