diff --git a/lib/server.js b/lib/server.js index 93f8e6f..9ece9c3 100644 --- a/lib/server.js +++ b/lib/server.js @@ -101,6 +101,9 @@ server.prototype.start = function(){ bind_parts = ["0.0.0.0", this.bind]; } else{ bind_parts = this.bind.split(":"); + if(bind_parts.length > 2){ + throw new Error("YAPS, Malformed bind parameter:", this.bind); + } } }