handled port as int with toString()

Signed-off-by: Ryan Wilson <syndicated.life@gmail.com>
v1.18.x
Ryan Wilson 10 years ago
parent ec6c618751
commit c354929569

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

Loading…
Cancel
Save