Skip to content

Commit

Permalink
Merge pull request #68 from libp2p/remove-tls13-godebug-check
Browse files Browse the repository at this point in the history
remove setting of the TLS 1.3 GODEBUG flag
  • Loading branch information
marten-seemann authored Jul 30, 2020
2 parents d3b17bf + 8aa3448 commit 14a65b8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions p2p/security/tls/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@ import (
"crypto/tls"
"errors"
"net"
"os"
"sync"

ci "github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/peer"
"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)
const ID = "/tls/1.0.0"

Expand Down

0 comments on commit 14a65b8

Please sign in to comment.