handled port as int with toString()

Signed-off-by: Ryan Wilson <syndicated.life@gmail.com>
This commit is contained in:
Ryan Wilson
2015-04-25 08:16:27 -07:00
parent ec6c618751
commit c354929569

View File

@@ -74,7 +74,7 @@
}
var hosts = nconf.get('mongo:host').split(',');
var ports = nconf.get('mongo:port').split(',');
var ports = nconf.get('mongo:port').toString().split(',');
var servers = [];
for (var i = 0; i < hosts.length; i++) {
@@ -161,4 +161,3 @@
};
}(exports));