1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00

Fixing type error in SSL Static mode

This commit is contained in:
Konstantin Alikhanov 2021-04-14 18:58:05 +04:00 committed by Umputun
parent 58bed075fd
commit c5200e0a1a

View File

@ -121,7 +121,7 @@ func (h *Http) Run(ctx context.Context) error {
err := httpServer.ListenAndServe()
log.Printf("[WARN] http redirect server terminated, %s", err)
}()
return httpServer.ListenAndServeTLS(h.SSLConfig.Cert, h.SSLConfig.Key)
return httpsServer.ListenAndServeTLS(h.SSLConfig.Cert, h.SSLConfig.Key)
case SSLAuto:
log.Printf("[INFO] activate https server in 'auto' mode on %s", h.Address)
log.Printf("[DEBUG] FQDNs %v", h.SSLConfig.FQDNs)