diff --git a/index.js b/index.js index 19a24d82..3193a7b7 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ if (isDev) { } const PORT = process.env.PORT || 80 -const HOST = process.env.HOST || '0.0.0.0' +const HOST = process.env.HOST const CONFIG_PATH = process.env.CONFIG_PATH || '/config' const METADATA_PATH = process.env.METADATA_PATH || '/metadata' const UID = process.env.AUDIOBOOKSHELF_UID || 99 diff --git a/server/Server.js b/server/Server.js index f144d398..0c61e48a 100644 --- a/server/Server.js +++ b/server/Server.js @@ -240,7 +240,8 @@ class Server { app.get('/healthcheck', (req, res) => res.sendStatus(200)) this.server.listen(this.Port, this.Host, () => { - Logger.info(`Listening on http://${this.Host}:${this.Port}`) + if (this.Host) Logger.info(`Listening on http://${this.Host}:${this.Port}`) + else Logger.info(`Listening on port :${this.Port}`) }) // Start listening for socket connections