1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

smtpsrv: Remove obsolete call to tls.BuildNameToCertificate

tls.BuildNameToCertificate has been deprecated, and calling it is no
longer necessary since Go 1.14.

Now that our minimum supported Go version is 1.15, we can remove it.
This commit is contained in:
Alberto Bertogli
2021-10-08 17:43:43 +01:00
parent e1a71105c3
commit 6633f0785c

View File

@@ -203,12 +203,6 @@ func (s *Server) ListenAndServe() {
log.Fatalf("At least one valid certificate is needed")
}
// At this point the TLS config should be done, build the
// name->certificate map (used by the TLS library for SNI).
// TODO: Once we support only Go >= 1.14, we can drop this, as it is no
// longer necessary.
s.tlsConfig.BuildNameToCertificate()
go s.periodicallyReload()
for m, addrs := range s.addrs {