From d88147ed98b816e6a55b9d8b0d82f04459c11504 Mon Sep 17 00:00:00 2001
From: Sergey Matveev <stargrave@stargrave.org>
Date: Thu, 4 May 2023 11:29:20 +0300
Subject: [PATCH] Fix for modern Go

---
 tls.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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() {
-- 
2.51.0