mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-22 11:46:08 +08:00
重置getByte51值
This commit is contained in:
@@ -109,6 +109,7 @@ func logAudit(cSess *sessdata.ConnSession, pl *sessdata.Payload) {
|
|||||||
copy(key[16:32], ipDst)
|
copy(key[16:32], ipDst)
|
||||||
binary.BigEndian.PutUint16(key[32:34], ipPort)
|
binary.BigEndian.PutUint16(key[32:34], ipPort)
|
||||||
key[34] = byte(accessProto)
|
key[34] = byte(accessProto)
|
||||||
|
copy(key[35:51], []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
|
||||||
|
|
||||||
info := ""
|
info := ""
|
||||||
nu := utils.NowSec().Unix()
|
nu := utils.NowSec().Unix()
|
||||||
@@ -163,9 +164,6 @@ func logAudit(cSess *sessdata.ConnSession, pl *sessdata.Payload) {
|
|||||||
md5Sum := md5.Sum([]byte(info))
|
md5Sum := md5.Sum([]byte(info))
|
||||||
copy(key[35:51], md5Sum[:])
|
copy(key[35:51], md5Sum[:])
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// 清空数据, 碰到使用上一个域名信息的问题
|
|
||||||
copy(key[35:51], []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
|
|
||||||
}
|
}
|
||||||
case flags & 0x19:
|
case flags & 0x19:
|
||||||
// URG
|
// URG
|
||||||
|
Reference in New Issue
Block a user