diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-12-08 14:06:52 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-12-08 14:06:52 -0700 |
commit | 31fbcd74016f35c4edf89b5de9c8a519663d588b (patch) | |
tree | 33f2659cbef5babe5c7b04caed046dce0b4aed91 /modules | |
parent | 7e719157d9b7002fc09de63344f7b4fdfa7e9f57 (diff) |
go.mod: Upgrade some dependencies
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddytls/values.go | 4 |
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 |