diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index 01f2b9d..b9bd914 100644 --- a/lib/node-http-proxy.js +++ b/lib/node-http-proxy.js @@ -74,6 +74,7 @@ exports.createServer = function () { // **NEED MORE HERE!!!** // args.forEach(function (arg) { + arg = Number(arg) || arg; switch (typeof arg) { case 'string': host = arg; break; case 'number': port = arg; break;