Skip to content

Commit

Permalink
fix(redis): 修复获取密码时,密码带 #3919
Browse files Browse the repository at this point in the history
  • Loading branch information
xiepaup authored and zhangzhw8 committed Apr 10, 2024
1 parent 4971436 commit f13141a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func GetProxyPasswdFromConfFlie(port int, role string) (password string, err err
if err != nil {
return
}
grepCmd = fmt.Sprintf(`grep -w "password" %s|grep -vE "#"|awk '{print $NF}'`, confFile)
grepCmd = fmt.Sprintf(`grep -w "password" %s|grep -vE "^#"|awk '{print $NF}'`, confFile)
} else if role == consts.MetaRolePredixy {
confFile, err = GetPredixyLocalConfFile(port)
if err != nil {
Expand Down

0 comments on commit f13141a

Please sign in to comment.