Commit 787370ee authored by Charlie Robbins's avatar Charlie Robbins

Merge pull request #109 from jnordberg/master

command line tool - make sure targetPort is an integer
parents bdf48bea 5ba25aa3
...@@ -64,7 +64,7 @@ if (typeof target === 'string') location = target.split(':'); ...@@ -64,7 +64,7 @@ if (typeof target === 'string') location = target.split(':');
// //
var server; var server;
if (location) { 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); server = httpProxy.createServer(targetPort, location[0], config);
} }
else if (config.router) { else if (config.router) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment