Merge pull request #4109 from router-for-me/websocket

feat(config): default enable WebsocketAuth in LoadConfigOptional and ParseConfigBytes
This commit is contained in:
Chén Mù
2026-07-04 10:58:56 +08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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
+1
View File
@@ -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