mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-23 00:44:25 +01:00
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:
@@ -23,9 +23,12 @@ func ixHandshakeStage0(f *Interface, hh *HandshakeHostInfo) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// If we're connecting to a v6 address we must use a v2 cert
|
||||
cs := f.pki.getCertState()
|
||||
v := cs.initiatingVersion
|
||||
if hh.initiatingVersionOverride != cert.VersionPre1 {
|
||||
v = hh.initiatingVersionOverride
|
||||
}
|
||||
// If we're connecting to a v6 address we must use a v2 cert
|
||||
for _, a := range hh.hostinfo.vpnAddrs {
|
||||
if a.Is6() {
|
||||
v = cert.Version2
|
||||
|
||||
Reference in New Issue
Block a user