From 31fbcd74016f35c4edf89b5de9c8a519663d588b Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 8 Dec 2020 14:06:52 -0700 Subject: go.mod: Upgrade some dependencies --- modules/caddytls/values.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/caddytls') 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 -- cgit v1.2.3