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]