Actually use correct variable, actually use variable correctly and added a loadConfig entry

This commit is contained in:
Stefan Schokker
2021-11-09 21:18:54 +01:00
parent 556c31d4ea
commit b7236319ec
3 changed files with 5 additions and 5 deletions
+1
View File
@@ -72,6 +72,7 @@ func (app *appContext) loadConfig() error {
app.MustSetValue("deletion", "email_text", "jfa-go:"+"deleted.txt")
app.MustSetValue("smtp", "hello_hostname", "localhost")
app.MustSetValue("smtp", "cert_validation", "true")
jfUrl := app.config.Section("jellyfin").Key("server").String()
if !(strings.HasPrefix(jfUrl, "http://") || strings.HasPrefix(jfUrl, "https://")) {