Permalink
Browse files

If passed in to 'listen'ing, pull manual port assignment into options.

  • Loading branch information...
1 parent a480177 commit 6caa710afb85e2dd4e6b85e47821f980222d1bd0 @rektide rektide committed Feb 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 server.js
View
@@ -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()

0 comments on commit 6caa710

Please sign in to comment.