From cabd0e3088422120fcf9424a8859a4e256e1ddab Mon Sep 17 00:00:00 2001 From: langhuihui <178529795@qq.com> Date: Tue, 19 Aug 2025 17:29:32 +0800 Subject: [PATCH] fix: all config plugin name to lowcase --- api_config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api_config.go b/api_config.go index f918a48..1a6ed08 100644 --- a/api_config.go +++ b/api_config.go @@ -143,10 +143,10 @@ func (s *Server) api_Config_YAML_All(rw http.ResponseWriter, r *http.Request) { // 3. Process plugin configs. for _, meta := range plugins { - if filterName != "" && meta.Name != filterName { + if filterName != "" && !strings.EqualFold(meta.Name, filterName) { continue } - + name := strings.ToLower(meta.Name) configType := meta.Type if configType.Kind() == reflect.Ptr { configType = configType.Elem() @@ -168,12 +168,12 @@ func (s *Server) api_Config_YAML_All(rw http.ResponseWriter, r *http.Request) { configSections = append(configSections, struct { name string data any - }{meta.Name, mergedConf}) + }{name, mergedConf}) } else { configSections = append(configSections, struct { name string data any - }{meta.Name, pluginConf}) + }{name, pluginConf}) } } }