summaryrefslogtreecommitdiff
path: root/modules/caddytls
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddytls')
-rw-r--r--modules/caddytls/values.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddytls/values.go b/modules/caddytls/values.go
index dea0013..4e8c1ad 100644
--- a/modules/caddytls/values.go
+++ b/modules/caddytls/values.go
@@ -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