mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
fix: use constant for TCP Timestamp option in clearTCPTimestamp
This commit is contained in:
parent
c98014c352
commit
9591438b16
@ -103,8 +103,7 @@ func (s *Server) clearTCPTimestamp(tcp *layers.TCP) bool {
|
||||
newOptions := make([]layers.TCPOption, 0, len(tcp.Options))
|
||||
|
||||
for _, opt := range tcp.Options {
|
||||
// TCP Timestamp option kind is 8
|
||||
if opt.OptionType == 8 {
|
||||
if opt.OptionType == layers.TCPOptionKindTimestamps {
|
||||
modified = true
|
||||
continue
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user