From 4909493297d13f67a265d20ae72911400b21e6c4 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Sat, 4 Jul 2026 10:50:11 +0800 Subject: [PATCH] feat(config): default enable WebsocketAuth in LoadConfigOptional and ParseConfigBytes Fixes #4015 --- internal/config/config.go | 1 + internal/config/parse.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index 7fe3120f..6259c8d3 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -718,6 +718,7 @@ func LoadConfigOptional(configFile string, optional bool) (*Config, error) { cfg.SaveCooldownStatus = false cfg.TransientErrorCooldownSeconds = 0 cfg.DisableImageGeneration = DisableImageGenerationOff + cfg.WebsocketAuth = true cfg.Pprof.Enable = false cfg.Pprof.Addr = DefaultPprofAddr cfg.RemoteManagement.PanelGitHubRepository = DefaultPanelGitHubRepository diff --git a/internal/config/parse.go b/internal/config/parse.go index 82e1e032..731cc127 100644 --- a/internal/config/parse.go +++ b/internal/config/parse.go @@ -28,6 +28,7 @@ func ParseConfigBytes(data []byte) (*Config, error) { cfg.SaveCooldownStatus = false cfg.TransientErrorCooldownSeconds = 0 cfg.DisableImageGeneration = DisableImageGenerationOff + cfg.WebsocketAuth = true cfg.Pprof.Enable = false cfg.Pprof.Addr = DefaultPprofAddr cfg.RemoteManagement.PanelGitHubRepository = DefaultPanelGitHubRepository