Allowed the configuration of a "HOST" parameter to enable ipv6 support.

This commit is contained in:
Quietus 2022-03-17 11:06:52 +00:00
parent 4fe60465e5
commit d561a48229
2 changed files with 5 additions and 4 deletions

View file

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