mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-04 06:53:36 +00:00
go.mod: Upgrade some dependencies
This commit is contained in:
parent
7e719157d9
commit
31fbcd7401
3 changed files with 20 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue