Browse Source

throw an Error when non-unix bind has multiple :

master
Brett Langdon 12 years ago
parent
commit
81478224ce
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/server.js

+ 3
- 0
lib/server.js View File

@ -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);
}
}
}


Loading…
Cancel
Save