mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
handled port as int with toString()
Signed-off-by: Ryan Wilson <syndicated.life@gmail.com>
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user