Add option to change IP address to bind

This commit is contained in:
Deluan 2020-07-08 20:54:56 -04:00
parent 933052583a
commit 7c3fd38559
2 changed files with 5 additions and 1 deletions

View file

@ -13,6 +13,7 @@ import (
type configOptions struct {
ConfigFile string
Address string
Port int
MusicFolder string
DataFolder string
@ -66,6 +67,7 @@ func init() {
viper.SetDefault("musicfolder", "./music")
viper.SetDefault("datafolder", "./")
viper.SetDefault("loglevel", "info")
viper.SetDefault("address", "0.0.0.0")
viper.SetDefault("port", 4533)
viper.SetDefault("sessiontimeout", consts.DefaultSessionTimeout)
viper.SetDefault("scaninterval", time.Minute)