Browse Source

fix server bind bug

master
Brett Langdon 12 years ago
parent
commit
466d1b706d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/server.js

+ 1
- 1
lib/server.js View File

@ -98,7 +98,7 @@ server.prototype.start = function(){
bind_parts[1] = this.bind; bind_parts[1] = this.bind;
} else{ } else{
if(!~this.bind.indexOf(":")){ if(!~this.bind.indexOf(":")){
bind_parts = [this.bind, "0.0.0.0"];
bind_parts = ["0.0.0.0", this.bind];
} else{ } else{
bind_parts = this.bind.split(":"); bind_parts = this.bind.split(":");
} }


Loading…
Cancel
Save