Skip to content

Commit

Permalink
If passed in to 'listen'ing, pull manual port assignment into options.
Browse files Browse the repository at this point in the history
  • Loading branch information
rektide committed Feb 14, 2012
1 parent a480177 commit 6caa710
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Expand Up @@ -32,6 +32,7 @@ function addFile() {

function listen(port, _opts) {
if (!_opts) { _opts = { port:port }}
else if(port) { _opts.port= port }
setOpts(_opts)
opts.handleAllRequests = true
var server = http.createServer()
Expand Down

0 comments on commit 6caa710

Please sign in to comment.