1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +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 wanghe-fit2cloud
parent 4222a985f9
commit 08fe607012

View File

@ -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{