mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 14:29:42 +08:00
优化审计日志异步写入
This commit is contained in:
@@ -16,9 +16,7 @@ func payloadIn(cSess *sessdata.ConnSession, pl *sessdata.Payload) bool {
|
||||
return false
|
||||
}
|
||||
if base.Cfg.AuditInterval >= 0 {
|
||||
cSess.IpAuditPool.JobQueue <- func() {
|
||||
logAudit(cSess, pl)
|
||||
}
|
||||
auditPayload.Add(cSess.Username, pl)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user