diff --git a/handshake_server.go b/handshake_server.go index c725384..c6427b2 100644 --- a/handshake_server.go +++ b/handshake_server.go @@ -350,7 +350,7 @@ Curves: for _, id := range hs.clientHello.cipherSuites { if id == TLS_FALLBACK_SCSV { // The client is doing a fallback connection. - if hs.clientHello.vers < c.config.maxVersion() { + if c.vers < c.config.maxVersion() { c.sendAlert(alertInappropriateFallback) return false, errors.New("tls: client using inappropriate protocol fallback") }