qlog received version negotiation packets

This commit is contained in:
Marten Seemann 2020-04-14 17:50:05 +07:00
parent 416dc485f8
commit 70ede9d73a
2 changed files with 10 additions and 1 deletions

View file

@ -358,6 +358,9 @@ func (c *client) handleVersionNegotiationPacket(p *receivedPacket) {
}
c.logger.Infof("Received a Version Negotiation packet. Supported Versions: %s", hdr.SupportedVersions)
if c.qlogger != nil {
c.qlogger.ReceivedVersionNegotiationPacket(hdr)
}
newVersion, ok := protocol.ChooseSupportedVersion(c.config.Versions, hdr.SupportedVersions)
if !ok {
//nolint:stylecheck