mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
smtp: hide commit hash in user agent
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
47924716c1
commit
37845c2936
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ func (c *Config) getMailClientOptions() []mail.Option {
|
|||
func (c *Config) getSMTPClientAndMsg(to, bcc []string, subject, body string, contentType EmailContentType,
|
||||
attachments ...*mail.File) (*mail.Client, *mail.Msg, error) {
|
||||
msg := mail.NewMsg()
|
||||
msg.SetUserAgent(version.GetServerVersion(" ", true))
|
||||
msg.SetUserAgent(version.GetServerVersion(" ", false))
|
||||
|
||||
var from string
|
||||
if c.From != "" {
|
||||
|
|
Loading…
Reference in a new issue