[fix] Convert strings to numbers if possible in .createServer

Fixes #321
This commit is contained in:
Colton Baker 2012-11-06 17:47:47 -05:00
parent b8c27ed565
commit 8a88774ecf

View File

@ -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;