mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-25 16:18:54 +01:00
Update:Remove HOST default to allow for ipv6 #1256
This commit is contained in:
parent
c06d734d5e
commit
10295b000a
2
index.js
2
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user