From 33bd7bd3846a99291865da50236e79385829f3dd Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 30 Sep 2022 12:25:01 +0200 Subject: [PATCH] Set default email address --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 485fa88b..9086d876 100644 --- a/config/config.go +++ b/config/config.go @@ -423,7 +423,8 @@ func (d *Config) Validate(resetLogs bool) { // If TLS and Let's Encrypt certificate is enabled, we require a non-empty email address if d.TLS.Enable && d.TLS.Auto { if len(d.TLS.Email) == 0 { - d.log("error", d.findVariable("tls.email"), "an email address must be set in order to get an automatic TLS certificate") + v := d.findVariable("tls.email") + v.value.Set(v.defVal) } }