device: fix keepalive detection in TX path
Updates tailscale/corp#30364 Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
parent
1f398ae148
commit
4064566eca
1 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,7 @@ func (peer *Peer) RoutineSequentialSender(maxBatchSize int) {
|
|||
dataSent := false
|
||||
elemsContainer.Lock()
|
||||
for _, elem := range elemsContainer.elems {
|
||||
if len(elem.packet) != MessageKeepaliveSize {
|
||||
if len(elem.packet[MessageEncapsulatingTransportSize:]) != MessageKeepaliveSize {
|
||||
dataSent = true
|
||||
}
|
||||
bufs = append(bufs, elem.packet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue