fix(config): 🐛 Update server host to 0.0.0.0
Some checks failed
CI / Test (1.22) (push) Failing after -24m27s
CI / Test (1.23) (push) Failing after -24m21s
CI / Build (push) Successful in -26m43s
CI / Lint (push) Successful in -26m33s

This commit is contained in:
Hein
2026-02-04 14:07:23 +02:00
parent 758c20ecfe
commit 45cf7c55f4
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ func Load(path string) (*Config, error) {
cfg.LogLevel = "info" cfg.LogLevel = "info"
} }
if cfg.Server.Host == "" { if cfg.Server.Host == "" {
cfg.Server.Host = "localhost" cfg.Server.Host = "0.0.0.0"
} }
if cfg.Server.Port == 0 { if cfg.Server.Port == 0 {
cfg.Server.Port = 8025 cfg.Server.Port = 8025

View File

@@ -44,7 +44,7 @@ func NewFromFile(configPath string) (*WhatsHooked, error) {
func New(opts ...Option) (*WhatsHooked, error) { func New(opts ...Option) (*WhatsHooked, error) {
cfg := &config.Config{ cfg := &config.Config{
Server: config.ServerConfig{ Server: config.ServerConfig{
Host: "localhost", Host: "0.0.0.0",
Port: 8025, Port: 8025,
}, },
Media: config.MediaConfig{ Media: config.MediaConfig{