Skip to content

Commit

Permalink
update tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Jul 20, 2018
1 parent 092f100 commit ba62338
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import (
var Restricted = tls.Config{
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP521,
tls.CurveP384,
tls.CurveP256,
tls.X25519,
},
PreferServerCipherSuites: true,
CipherSuites: []uint16{
Expand All @@ -27,9 +26,8 @@ var Restricted = tls.Config{
var Modern = tls.Config{
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{
tls.CurveP521,
tls.CurveP384,
tls.CurveP256,
tls.X25519,
},
PreferServerCipherSuites: true,
CipherSuites: []uint16{
Expand All @@ -50,9 +48,8 @@ var Modern = tls.Config{
var Compatible = tls.Config{
MinVersion: tls.VersionTLS10,
CurvePreferences: []tls.CurveID{
tls.CurveP521,
tls.CurveP384,
tls.CurveP256,
tls.X25519,
},
PreferServerCipherSuites: true,
CipherSuites: []uint16{
Expand Down

0 comments on commit ba62338

Please sign in to comment.