()
| 6 | ) |
| 7 | |
| 8 | func (h *HTTPServer) ServeTLS() error { |
| 9 | certCache := NewCertCache() |
| 10 | |
| 11 | tlsConfig := &tls.Config{ |
| 12 | GetCertificate: certCache.GetCertificate, |
| 13 | } |
| 14 | |
| 15 | serv := http.Server{ |
| 16 | Addr: h.TLSAddress, |
| 17 | Handler: h, |
| 18 | TLSConfig: tlsConfig, |
| 19 | } |
| 20 | |
| 21 | return serv.ListenAndServeTLS("", "") |
| 22 | } |
| 23 | |
| 24 | func (h *HTTPServer) Serve() error { |
| 25 | serv := http.Server{ |
no test coverage detected