Skip to content

Commit

Permalink
Fix sending bad ack frames
Browse files Browse the repository at this point in the history
  • Loading branch information
cedws committed Sep 14, 2023
1 parent e81541a commit eb49731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iap/iap.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ func (c *Conn) Received() uint64 {
func (c *Conn) writeAck(nb uint64) error {
buf := make([]byte, 10)

binary.LittleEndian.PutUint16(buf[0:2], subprotoTagAck)
binary.LittleEndian.PutUint64(buf[2:10], nb)
binary.BigEndian.PutUint16(buf[0:2], subprotoTagAck)
binary.BigEndian.PutUint64(buf[2:10], nb)

_, err := c.conn.Write(buf)
return err
Expand Down

0 comments on commit eb49731

Please sign in to comment.