remove setting of the TLS 1.3 GODEBUG flag

This commit is contained in:
Marten Seemann 2020-07-30 12:25:36 +07:00
parent d3b17bff02
commit 8aa3448da2
1 changed files with 0 additions and 7 deletions

View File

@ -5,7 +5,6 @@ import (
"crypto/tls" "crypto/tls"
"errors" "errors"
"net" "net"
"os"
"sync" "sync"
ci "github.com/libp2p/go-libp2p-core/crypto" ci "github.com/libp2p/go-libp2p-core/crypto"
@ -13,12 +12,6 @@ import (
"github.com/libp2p/go-libp2p-core/sec" "github.com/libp2p/go-libp2p-core/sec"
) )
// TLS 1.3 is opt-in in Go 1.12
// Activate it by setting the tls13 GODEBUG flag.
func init() {
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
}
// ID is the protocol ID (used when negotiating with multistream) // ID is the protocol ID (used when negotiating with multistream)
const ID = "/tls/1.0.0" const ID = "/tls/1.0.0"