mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 15:56:16 -06:00
pee
This commit is contained in:
parent
13652be0eb
commit
2b60f31717
1 changed files with 2 additions and 1 deletions
|
|
@ -285,7 +285,8 @@ func (r *Router) letsEncryptTLS() (func() error, error) {
|
||||||
// Take our own copy of the HTTP server,
|
// Take our own copy of the HTTP server,
|
||||||
// and update it to serve LetsEncrypt
|
// and update it to serve LetsEncrypt
|
||||||
// requests via the autocert manager.
|
// requests via the autocert manager.
|
||||||
*r.leSrv = (*r.srv) //nolint:govet
|
r.leSrv = new(http.Server) //nolint:gosec
|
||||||
|
*r.leSrv = (*r.srv) //nolint:govet
|
||||||
r.leSrv.Handler = acm.HTTPHandler(fallback)
|
r.leSrv.Handler = acm.HTTPHandler(fallback)
|
||||||
r.leSrv.Addr = fmt.Sprintf("%s:%d",
|
r.leSrv.Addr = fmt.Sprintf("%s:%d",
|
||||||
config.GetBindAddress(),
|
config.GetBindAddress(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue