From 53d6e62c854ab253ee39a0f5013c1c0ff4a9bf10 Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Fri, 15 Apr 2016 12:05:42 +0200 Subject: [PATCH] add support for PAD frames --- session.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/session.go b/session.go index fb5c4918..4498993a 100644 --- a/session.go +++ b/session.go @@ -113,6 +113,9 @@ func (s *Session) HandlePacket(addr *net.UDPAddr, publicHeaderBinary []byte, pub fmt.Println("Detected STOP_WAITING") r.ReadByte() r.ReadByte() + } else if typeByte == 0 { + // PAD + return nil } else { return errors.New("Session: invalid Frame Type Field") }