From: Sergey Matveev Date: Thu, 4 May 2023 08:29:20 +0000 (+0300) Subject: Fix for modern Go X-Git-Url: http://www.git.stargrave.org/?p=godlighty.git;a=commitdiff_plain;h=d88147ed98b816e6a55b9d8b0d82f04459c11504 Fix for modern Go --- diff --git a/tls.go b/tls.go index 684146d..0451b03 100644 --- a/tls.go +++ b/tls.go @@ -149,11 +149,9 @@ func loadCertificates( log.Fatalln(err) } pool.AddCert(ca) + (*hostClientAuth)[host] = pool } } - if len(pool.Subjects()) > 0 { - (*hostClientAuth)[host] = pool - } } func LoadCertificates() {