mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-08-04 07:43:58 +00:00
Enable http-01 challenge
This commit is contained in:
parent
7c7b0c53a9
commit
25483b27b3
1 changed files with 5 additions and 3 deletions
|
|
@ -132,10 +132,12 @@ func (s *Server) redirection() (*Server, error) {
|
|||
log.Printf("Redirect: http://%s%s -> %s", r.Host, r.URL.String(), rdr)
|
||||
http.Redirect(w, r, rdr, http.StatusFound)
|
||||
}))
|
||||
|
||||
// do we need this after all?
|
||||
//if serv.autoCert != nil {
|
||||
// return serv.autoCert.HTTPHandler(h)
|
||||
//}
|
||||
if serv.autoCert != nil {
|
||||
return serv.autoCert.HTTPHandler(h)
|
||||
}
|
||||
|
||||
return h
|
||||
})
|
||||
log.Printf("Starting HTTP->HTTPS redirection server on %s", srv.Addr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue