Permalink
Browse files

server: fix proxyTo() call

  • Loading branch information...
1 parent 7497b0f commit b8eb39dc6c7529f512d2c9a1b8085ca133a2e48c @astro astro committed Aug 29, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 server.js
View
@@ -68,8 +68,7 @@ function routingMiddleware(req, res, next) {
}
idx = idx % BACKEND_PORTS.length;
- console.log({proxyTo:{idx:idx,port:BACKEND_PORTS[idx]}});
- req.proxyTo(BACKEND_PORTS, BACKEND_PORTS[idx]);
+ req.proxyTo(BACKEND_HOST, BACKEND_PORTS[idx]);
}
};

0 comments on commit b8eb39d

Please sign in to comment.