From 81478224cecb7fa05c6a62713bd7deec06715cc2 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 30 Aug 2013 22:52:36 -0400 Subject: [PATCH] throw an Error when non-unix bind has multiple : --- lib/server.js | 3 +++ 1 file changed, 3 insertions(+) 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); + } } }