log undecrytable packets after the handshake

This commit is contained in:
Marten Seemann
2017-06-16 11:11:43 +02:00
parent 248bec97f9
commit 2a2375f787
2 changed files with 6 additions and 1 deletions

View File

@@ -775,6 +775,7 @@ func (s *session) scheduleSending() {
func (s *session) tryQueueingUndecryptablePacket(p *receivedPacket) {
if s.handshakeComplete {
utils.Debugf("Received undecryptable packet from %s after the handshake: %#v, %d bytes data", p.remoteAddr.String(), p.publicHeader, len(p.data))
return
}
if len(s.undecryptablePackets)+1 > protocol.MaxUndecryptablePackets {