mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
lib/tlsutil: Remove Go 1.12 TLS 1.3 beta opt-in
Go 1.13 enables this by default.
This commit is contained in:
parent
d3d7408b17
commit
879f51b027
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user