Update payload_access_audit.go

This commit is contained in:
lanrenwo 2023-09-08 21:01:03 +08:00 committed by GitHub
parent 7b9be9377f
commit 8e843d5eae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -125,8 +125,7 @@ func logAudit(userName string, pl *sessdata.Payload) {
default: default:
return return
} }
// ipPort := waterutil.IPv4DestinationPort(pl.Data) // IP报文只包含头部信息时, 则打印LOG并退出
// 修复 panic: runtime error: index out of range [2] / range [3]
ipPl := waterutil.IPv4Payload(pl.Data) ipPl := waterutil.IPv4Payload(pl.Data)
if len(ipPl) < 4 { if len(ipPl) < 4 {
base.Error("ipPl len < 4", ipPl, pl.Data) base.Error("ipPl len < 4", ipPl, pl.Data)