From a4d70748beb300f04c2f087c24defcab2f98fd10 Mon Sep 17 00:00:00 2001 From: ray-1337 <33544674+ray-1337@users.noreply.github.com> Date: Mon, 11 Apr 2022 21:16:37 +0200 Subject: [PATCH] fix error typo --- src/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.js b/src/Util.js index e1963de..32ce840 100644 --- a/src/Util.js +++ b/src/Util.js @@ -90,7 +90,7 @@ module.exports.checkAppropriatePort = function(port) { module.exports.checkAppropriateIP = function(address) { if (typeof address !== "string") { - throw new Error("The address must be type of number."); + throw new Error("The address must be type of string."); }; // https://blog.markhatton.co.uk/2011/03/15/regular-expressions-for-ip-addresses-cidr-ranges-and-hostnames/