mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
fix: skip NOP and EOF options in clearTCPTimestamp
This commit is contained in:
parent
9591438b16
commit
004a568b30
@ -107,6 +107,9 @@ func (s *Server) clearTCPTimestamp(tcp *layers.TCP) bool {
|
|||||||
modified = true
|
modified = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if opt.OptionType == layers.TCPOptionKindNop || opt.OptionType == layers.TCPOptionKindEndList {
|
||||||
|
continue
|
||||||
|
}
|
||||||
newOptions = append(newOptions, opt)
|
newOptions = append(newOptions, opt)
|
||||||
}
|
}
|
||||||
if modified {
|
if modified {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user