diff --git a/config/letsencrypt.go b/config/letsencrypt.go index 0fa5b0c6..63135171 100644 --- a/config/letsencrypt.go +++ b/config/letsencrypt.go @@ -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)) } } }