mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-30 15:58:10 +08:00
Oops (pass a pointer)
This commit is contained in:
@ -148,7 +148,7 @@ func initiateLetsEncrypt(configs []server.Config) ([]server.Config, error) {
|
||||
|
||||
if !plaintextHostFound {
|
||||
// Make one that redirects to HTTPS for all requests
|
||||
configs = append(configs, redirPlaintextHost(cfg))
|
||||
configs = append(configs, redirPlaintextHost(*cfg))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user