mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 08:14:40 +02:00
Allowed the configuration of a "HOST" parameter to enable ipv6 support.
This commit is contained in:
parent
4fe60465e5
commit
d561a48229
2 changed files with 5 additions and 4 deletions
|
@ -31,9 +31,9 @@ const CoverController = require('./CoverController')
|
|||
const CacheManager = require('./CacheManager')
|
||||
|
||||
class Server {
|
||||
constructor(PORT, UID, GID, CONFIG_PATH, METADATA_PATH, AUDIOBOOK_PATH) {
|
||||
constructor(PORT, HOST, UID, GID, CONFIG_PATH, METADATA_PATH, AUDIOBOOK_PATH) {
|
||||
this.Port = PORT
|
||||
this.Host = '0.0.0.0'
|
||||
this.Host = HOST
|
||||
global.Uid = isNaN(UID) ? 0 : Number(UID)
|
||||
global.Gid = isNaN(GID) ? 0 : Number(GID)
|
||||
global.ConfigPath = Path.normalize(CONFIG_PATH)
|
||||
|
@ -658,4 +658,4 @@ class Server {
|
|||
})
|
||||
}
|
||||
}
|
||||
module.exports = Server
|
||||
module.exports = Server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue