Browse Source

fix error typo

develop
ray-1337 3 years ago
parent
commit
a4d70748be
  1. 2
      src/Util.js

2
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/

Loading…
Cancel
Save