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