fix: ssh日志识别错误 (#2630)

Co-authored-by: 江杭辉 <jianghanghui@k.app>
pull/2634/head
igophper 2023-10-23 10:24:37 +08:00 committed by GitHub
parent fb19437f5f
commit a86ec12b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,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{