Skip to content

Commit

Permalink
Merge pull request #109 from jnordberg/master
Browse files Browse the repository at this point in the history
command line tool - make sure targetPort is an integer
  • Loading branch information
indexzero committed Sep 19, 2011
2 parents bdf48be + 5ba25aa commit 787370e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/node-http-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (typeof target === 'string') location = target.split(':');
//
var server;
if (location) {
var targetPort = location.length === 1 ? 80 : location[1];
var targetPort = location.length === 1 ? 80 : parseInt(location[1]);
server = httpProxy.createServer(targetPort, location[0], config);
}
else if (config.router) {
Expand Down

0 comments on commit 787370e

Please sign in to comment.