Skip to content

Commit

Permalink
fix: ssh日志识别错误 (#2630)
Browse files Browse the repository at this point in the history
Co-authored-by: 江杭辉 <jianghanghui@k.app>
  • Loading branch information
2 people authored and wanghe-fit2cloud committed Oct 23, 2023
1 parent 4222a98 commit 08fe607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/service/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func loadFailedSecureDatas(line string) dto.SSHHistory {
return data
}
index := 0
if strings.Contains("line", " invalid user") {
if strings.Contains(line, " invalid user") {
index = 2
}
data = dto.SSHHistory{
Expand Down

0 comments on commit 08fe607

Please sign in to comment.