diff --git a/src/startup.ts b/src/startup.ts index 7a2bcf9..bd1a95b 100644 --- a/src/startup.ts +++ b/src/startup.ts @@ -95,7 +95,7 @@ openDB(config).then(function (db) // Start node server.js var httpServer = http.createServer(app); - httpServer.listen(config.portHTTP); + httpServer.listen( {port: config.portHTTP, host: "localhost"} ); winston.info(`Listening on HTTP port ${config.portHTTP}`, { process: process.pid }); // If we use SSL then start listening for that as well @@ -133,7 +133,7 @@ openDB(config).then(function (db) winston.info(`Attempting to start SSL server...`, { process: process.pid }); var httpsServer = https.createServer({ key: privkey, cert: theCert, passphrase: config.sslPassPhrase, ca: caChain }, app); - httpsServer.listen(port); + httpsServer.listen( {port: port, host: "localhost"} ); winston.info(`Listening on HTTPS port ${port}`, { process: process.pid }); }