even spicier change to rehandshake if we detect our cert is lower-version than our peer, and we have a newer-version cert available

This commit is contained in:
JackDoan
2025-09-10 13:32:41 -05:00
parent 0946831f88
commit 41273a94bb
4 changed files with 104 additions and 7 deletions

View File

@@ -74,7 +74,8 @@ type HandshakeHostInfo struct {
lastRemotes []netip.AddrPort // Remotes that we sent to during the previous attempt
packetStore []*cachedPacket // A set of packets to be transmitted once the handshake completes
hostinfo *HostInfo
hostinfo *HostInfo
initiatingVersionOverride cert.Version
}
func (hh *HandshakeHostInfo) cachePacket(l *logrus.Logger, t header.MessageType, st header.MessageSubType, packet []byte, f packetCallback, m *cachedPacketMetrics) {