diff --git a/routes/get.go b/routes/get.go index 5332926..238b81c 100644 --- a/routes/get.go +++ b/routes/get.go @@ -24,17 +24,17 @@ func GetCertificateInfo(c *gin.Context) { return } cipherSuite := tls.CipherSuiteName(resp.ConnectionState().CipherSuite) - ver := resp.ConnectionState().Version + v := resp.ConnectionState().Version var tlsVersion string - if ver == tls.VersionSSL30 { + if v == tls.VersionSSL30 { tlsVersion = "SSLv3" - } else if ver == tls.VersionTLS10 { + } else if v == tls.VersionTLS10 { tlsVersion = "TLSv1" - } else if ver == tls.VersionTLS11 { + } else if v == tls.VersionTLS11 { tlsVersion = "TLSv1.1" - } else if ver == tls.VersionTLS12 { + } else if v == tls.VersionTLS12 { tlsVersion = "TLSv1.2" - } else if ver == tls.VersionTLS13 { + } else if v == tls.VersionTLS13 { tlsVersion = "TLSv1.3" } else { tlsVersion = "unknown"