X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tls.go;h=0451b0328f27b66dd1150155174567ea359d711d;hb=165d9a8cd3569e555ace6362f9f968cdc90241f1;hp=51470f37bb802ebe1f45cb10eefe0c1b2d24e74b;hpb=e057b4615b830e49508b76f722f1461755aafdda;p=godlighty.git diff --git a/tls.go b/tls.go index 51470f3..0451b03 100644 --- a/tls.go +++ b/tls.go @@ -1,6 +1,6 @@ /* godlighty -- highly-customizable HTTP, HTTP/2, HTTPS server -Copyright (C) 2021-2022 Sergey Matveev +Copyright (C) 2021-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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() {