Fix tcp state (#3431)

This commit is contained in:
Viktor Liu 2025-03-04 11:19:54 +01:00 committed by GitHub
parent 96d5190436
commit 1e10c17ecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,11 +265,11 @@ func (t *TCPTracker) updateState(key ConnKey, conn *TCPConnTrack, flags uint8, i
case TCPStateSynSent:
if flags&TCPSyn != 0 && flags&TCPAck != 0 {
if isOutbound {
conn.State = TCPStateSynReceived
} else {
// Simultaneous open
conn.State = TCPStateEstablished
conn.SetEstablished(true)
} else {
// Simultaneous open
conn.State = TCPStateSynReceived
}
}