hshixun
Results
comments of
hshixun
It is because **the default connection tcp family is 6** (mongoose/node_modules/mongodb-core/lib/connection/connection.js Connection.prototype.connect) This will cause cause system do **dns lookup** first if host is 'localhost'. if ::1 localhost is not...
you may also check if there is NODE_OPTIONS environment variable set