From 941367f77b73370d1045d63c6a652c3344d659bd Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 4 Sep 2024 21:15:19 +0100 Subject: [PATCH] config: MustSetValue all MustInts so stuff like the previous commit's issue doesn't happen again. --- config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.go b/config.go index 5e055bd..c58f425 100644 --- a/config.go +++ b/config.go @@ -97,6 +97,7 @@ func (app *appContext) loadConfig() error { app.MustSetValue("smtp", "hello_hostname", "localhost") app.MustSetValue("smtp", "cert_validation", "true") app.MustSetValue("smtp", "auth_type", "4") + app.MustSetValue("smtp", "port", "465") app.MustSetValue("activity_log", "keep_n_records", "1000") app.MustSetValue("activity_log", "delete_after_days", "90") @@ -151,6 +152,9 @@ func (app *appContext) loadConfig() error { app.MustSetValue("advanced", "auth_retry_count", "6") app.MustSetValue("advanced", "auth_retry_gap", "10") + app.MustSetValue("ui", "port", "8056") + app.MustSetValue("advanced", "tls_port", "8057") + pwrMethods := []string{"allow_pwr_username", "allow_pwr_email", "allow_pwr_contact_method"} allDisabled := true for _, v := range pwrMethods {