mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 12:24:30 +08:00
仅在PSH + ACK时分析域名信息
This commit is contained in:
@@ -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, ""
|
||||
|
Reference in New Issue
Block a user