mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Remove deprecated PreferServerCipherSuites
This commit is contained in:
parent
a69b161725
commit
67eb574fd4
1 changed files with 2 additions and 3 deletions
|
@ -100,10 +100,9 @@ func startUnixSocketServer(server *http.Server, socketFile string) {
|
||||||
|
|
||||||
func tlsConfig() *tls.Config {
|
func tlsConfig() *tls.Config {
|
||||||
// See https://blog.cloudflare.com/exposing-go-on-the-internet/
|
// See https://blog.cloudflare.com/exposing-go-on-the-internet/
|
||||||
// And https://wikia.mozilla.org/Security/Server_Side_TLS
|
// And https://wiki.mozilla.org/Security/Server_Side_TLS
|
||||||
return &tls.Config{
|
return &tls.Config{
|
||||||
MinVersion: tls.VersionTLS12,
|
MinVersion: tls.VersionTLS12,
|
||||||
PreferServerCipherSuites: true,
|
|
||||||
CurvePreferences: []tls.CurveID{
|
CurvePreferences: []tls.CurveID{
|
||||||
tls.CurveP256,
|
tls.CurveP256,
|
||||||
tls.X25519,
|
tls.X25519,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue