lib/tlsutil: Remove Go 1.12 TLS 1.3 beta opt-in

Go 1.13 enables this by default.
This commit is contained in:
Jakob Borg 2019-11-10 09:32:45 +01:00
parent d3d7408b17
commit 879f51b027

View File

@ -70,11 +70,6 @@ var (
func init() { func init() {
// Creates the list of ciper suites that SecureDefault uses. // Creates the list of ciper suites that SecureDefault uses.
cipherSuites = buildCipherSuites() cipherSuites = buildCipherSuites()
if build.IsBeta {
// Append "tls13=1" to GODEBUG before starting TLS, to enable TLS
// 1.3 in Go 1.12.
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
}
} }
// SecureDefault returns a tls.Config with reasonable, secure defaults set. // SecureDefault returns a tls.Config with reasonable, secure defaults set.