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/