]> Sergey Matveev's repositories - godlighty.git/blobdiff - tls.go
Fix for modern Go
[godlighty.git] / 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() {