fixy fixy

This commit is contained in:
JackDoan
2025-10-02 17:33:47 -05:00
parent c073eebe42
commit f488873d70

View File

@@ -27,7 +27,7 @@ func ixHandshakeStage0(f *Interface, hh *HandshakeHostInfo) bool {
v := cs.initiatingVersion v := cs.initiatingVersion
if hh.initiatingVersionOverride != cert.VersionPre1 { if hh.initiatingVersionOverride != cert.VersionPre1 {
v = hh.initiatingVersionOverride v = hh.initiatingVersionOverride
} } else if v < cert.Version2 {
// If we're connecting to a v6 address we must use a v2 cert // If we're connecting to a v6 address we must use a v2 cert
for _, a := range hh.hostinfo.vpnAddrs { for _, a := range hh.hostinfo.vpnAddrs {
if a.Is6() { if a.Is6() {
@@ -35,6 +35,7 @@ func ixHandshakeStage0(f *Interface, hh *HandshakeHostInfo) bool {
break break
} }
} }
}
crt := cs.getCertificate(v) crt := cs.getCertificate(v)
if crt == nil { if crt == nil {