1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

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

Co-authored-by: 江杭辉 <jianghanghui@k.app>
This commit is contained in:
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

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{