From bc62fbadbb516624c13501c121c61a644aa71998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 15 Feb 2025 02:47:50 +0800 Subject: [PATCH] fix: redis info --- internal/apps/redis/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/apps/redis/app.go b/internal/apps/redis/app.go index 8383e360..575b210e 100644 --- a/internal/apps/redis/app.go +++ b/internal/apps/redis/app.go @@ -46,7 +46,7 @@ func (s *App) Load(w http.ResponseWriter, r *http.Request) { service.Error(w, http.StatusInternalServerError, "%v", err) return } - re := regexp.MustCompile(`requirepass\s+(.+)`) + re := regexp.MustCompile(`^requirepass\s+(.+)`) matches := re.FindStringSubmatch(config) if len(matches) == 2 { withPassword = " -a " + matches[1]