fix: skip NOP and EOF options in clearTCPTimestamp

This commit is contained in:
SunBK201 2025-12-08 13:04:45 +08:00
parent 9591438b16
commit 004a568b30

View File

@ -107,6 +107,9 @@ func (s *Server) clearTCPTimestamp(tcp *layers.TCP) bool {
modified = true
continue
}
if opt.OptionType == layers.TCPOptionKindNop || opt.OptionType == layers.TCPOptionKindEndList {
continue
}
newOptions = append(newOptions, opt)
}
if modified {