From eb49731fa521b612de30f48181db2f276b3e5722 Mon Sep 17 00:00:00 2001 From: Connor Edwards <38229097+cedws@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:14:20 +0100 Subject: [PATCH] Fix sending bad ack frames --- iap/iap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iap/iap.go b/iap/iap.go index 1acead8..97f8b45 100644 --- a/iap/iap.go +++ b/iap/iap.go @@ -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