Skip to content

Commit

Permalink
Fix go-gitea#9151 - sendTos should be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Nov 25, 2019
1 parent 62bcb2b commit 4d83fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/setting/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func generateLogConfig(sec *ini.Section, name string, defaults defaultLogOptions
logConfig["username"] = sec.Key("USER").MustString("example@example.com")
logConfig["password"] = sec.Key("PASSWD").MustString("******")
logConfig["host"] = sec.Key("HOST").MustString("127.0.0.1:25")
logConfig["sendTos"] = sec.Key("RECEIVERS").MustString("[]")
logConfig["sendTos"] = strings.Split(sec.Key("RECEIVERS").MustString(""), ",")
logConfig["subject"] = sec.Key("SUBJECT").MustString("Diagnostic message from Gitea")
}

Expand Down

0 comments on commit 4d83fb9

Please sign in to comment.