From 10295b000a336da38574187c04085479606f921c Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 17 Dec 2022 15:55:53 -0600 Subject: [PATCH] Update:Remove HOST default to allow for ipv6 #1256 --- index.js | 2 +- server/Server.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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