mirror of
https://github.com/minio/minio.git
synced 2025-04-20 18:44:21 -04:00
remove TLS 1.3 opt-in code (#8275)
This commit removes the TLS 1.3 opt-in code. Since TLS 1.3 is opt-out for >= Go 1.13 this code is not needed anymore.
This commit is contained in:
parent
dc0dce9beb
commit
a9d724120f
@ -20,7 +20,6 @@ import (
|
|||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
@ -31,13 +30,6 @@ import (
|
|||||||
"github.com/minio/minio/pkg/certs"
|
"github.com/minio/minio/pkg/certs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
// Opt-in to TLS 1.3. See: https://golang.org/pkg/crypto/tls
|
|
||||||
// In future Go versions TLS 1.3 probably gets enabled by default.
|
|
||||||
// So, we can remove this line as soon as this is the case.
|
|
||||||
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
|
|
||||||
}
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
serverShutdownPoll = 500 * time.Millisecond
|
serverShutdownPoll = 500 * time.Millisecond
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user