diff --git a/pkg/config/config.go b/pkg/config/config.go index 3ede490..f0761a4 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -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 diff --git a/pkg/whatshooked/whatshooked.go b/pkg/whatshooked/whatshooked.go index 5849ded..243371a 100644 --- a/pkg/whatshooked/whatshooked.go +++ b/pkg/whatshooked/whatshooked.go @@ -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{