From 08c1a5a59b68a33880f45218cdfad85b6e1b7c65 Mon Sep 17 00:00:00 2001 From: Paper Date: Sat, 2 Jan 2021 13:18:49 +0100 Subject: [PATCH] Set minimum TLS version to TLS 1.2 --- tls.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tls.go b/tls.go index 6b139ab..011bd26 100644 --- a/tls.go +++ b/tls.go @@ -16,6 +16,7 @@ import ( func getTLSConfig() *tls.Config { cfg := &tls.Config{} + cfg.MinVersion = tls.VersionTLS12 for i := 0; i < len(config.Domain); i++ { if config.Domain[i].Name == "" { fmt.Printf("Invalid domain name on domain %d\n", i) -- 2.45.2