Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6caa710afb85e2dd4e6b85e47821f980222d1bd0 1 parent a480177
@rektide rektide authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  server.js
View
1  server.js
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.