]> Sergey Matveev's repositories - godlighty.git/commitdiff
Fix for modern Go
authorSergey Matveev <stargrave@stargrave.org>
Thu, 4 May 2023 08:29:20 +0000 (11:29 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 4 May 2023 08:29:20 +0000 (11:29 +0300)
tls.go

diff --git a/tls.go b/tls.go
index 684146d725559c0f613ffb6de38ce0cf78fcf723..0451b0328f27b66dd1150155174567ea359d711d 100644 (file)
--- 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() {