fix(config): 🐛 Update server host to 0.0.0.0
This commit is contained in:
@@ -149,7 +149,7 @@ func Load(path string) (*Config, error) {
|
||||
cfg.LogLevel = "info"
|
||||
}
|
||||
if cfg.Server.Host == "" {
|
||||
cfg.Server.Host = "localhost"
|
||||
cfg.Server.Host = "0.0.0.0"
|
||||
}
|
||||
if cfg.Server.Port == 0 {
|
||||
cfg.Server.Port = 8025
|
||||
|
||||
@@ -44,7 +44,7 @@ func NewFromFile(configPath string) (*WhatsHooked, error) {
|
||||
func New(opts ...Option) (*WhatsHooked, error) {
|
||||
cfg := &config.Config{
|
||||
Server: config.ServerConfig{
|
||||
Host: "localhost",
|
||||
Host: "0.0.0.0",
|
||||
Port: 8025,
|
||||
},
|
||||
Media: config.MediaConfig{
|
||||
|
||||
Reference in New Issue
Block a user