Browse Source

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

Go 1.13 enables this by default.
Jakob Borg 6 năm trước cách đây
mục cha
commit
879f51b027
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      lib/tlsutil/tlsutil.go

+ 0 - 5
lib/tlsutil/tlsutil.go

@@ -70,11 +70,6 @@ var (
 func init() {
 	// Creates the list of ciper suites that SecureDefault uses.
 	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.