Update:Remove HOST default to allow for ipv6 #1256

This commit is contained in:
advplyr 2022-12-17 15:55:53 -06:00
parent c06d734d5e
commit 10295b000a
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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