From a07660c6fd638c608eb5e9083571832eee8a9ff4 Mon Sep 17 00:00:00 2001 From: Philipp Michelfeit <41289899+philipp-michelfeit@users.noreply.github.com> Date: Thu, 26 May 2022 20:45:55 +0200 Subject: [PATCH] fixed bug --- lib/ip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ip.js b/lib/ip.js index 4b2adb5..0df8b8e 100644 --- a/lib/ip.js +++ b/lib/ip.js @@ -100,7 +100,7 @@ function _normalizeFamily(family) { if (family === 6) { return 'ipv6'; } - return family ? family.toLowerCase() : 'ipv4'; + return family ? family.toString().toLowerCase() : 'ipv4'; } ip.fromPrefixLen = function (prefixlen, family) {