Skip to content

Commit

Permalink
Simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
dusansalestrekker committed Aug 10, 2021
1 parent 152e09e commit fe7f699
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func visit(url *url.URL) {
ServerName: host,
InsecureSkipVerify: insecure,
Certificates: readClientCert(clientCertFile),
MinVersion: tls.VersionTLS10,
MinVersion: tls.VersionTLS12,
}
}

Expand All @@ -294,10 +294,6 @@ func visit(url *url.URL) {
connectedVia := "plaintext"
if resp.TLS != nil {
switch resp.TLS.Version {
case tls.VersionTLS10:
connectedVia = "TLSv1.0"
case tls.VersionTLS11:
connectedVia = "TLSv1.1"
case tls.VersionTLS12:
connectedVia = "TLSv1.2"
case tls.VersionTLS13:
Expand Down

0 comments on commit fe7f699

Please sign in to comment.