mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-13 10:42:16 -04:00
go.mod: Upgrade some dependencies
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/caddyserver/certmagic"
|
||||
"github.com/klauspost/cpuid"
|
||||
"github.com/klauspost/cpuid/v2"
|
||||
)
|
||||
|
||||
// CipherSuiteNameSupported returns true if name is
|
||||
@@ -75,7 +75,7 @@ var defaultCipherSuitesWithoutAESNI = []uint16{
|
||||
//
|
||||
// See https://github.com/caddyserver/caddy/issues/1674
|
||||
func getOptimalDefaultCipherSuites() []uint16 {
|
||||
if cpuid.CPU.AesNi() {
|
||||
if cpuid.CPU.Supports(cpuid.AESNI) {
|
||||
return defaultCipherSuitesWithAESNI
|
||||
}
|
||||
return defaultCipherSuitesWithoutAESNI
|
||||
|
||||
Reference in New Issue
Block a user