add support for PAD frames

This commit is contained in:
Lucas Clemente
2016-04-15 12:05:42 +02:00
parent 50a1f802f9
commit 53d6e62c85

View File

@@ -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")
}