mirror of
https://gh-proxy.org/https://github.com/klinsmaya/CLIProxyAPI.git
synced 2026-11-08 01:16:47 +08:00
Merge pull request #4109 from router-for-me/websocket
feat(config): default enable WebsocketAuth in LoadConfigOptional and ParseConfigBytes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user