仅在PSH + ACK时分析域名信息

This commit is contained in:
lanrenwo
2022-09-29 22:08:20 +08:00
parent 3c5acd31fb
commit e483da10e1
2 changed files with 32 additions and 16 deletions

View File

@@ -15,9 +15,6 @@ var tcpParsers = []func([]byte) (uint8, string){
func onTCP(payload []byte) (uint8, string) {
size := len(payload)
if size < 13 {
return acc_proto_tcp, ""
}
ihl := (payload[12] & 0xf0) >> 2
if int(ihl) > size {
return acc_proto_tcp, ""