diff options
author | Peter <peter@smitmail.eu> | 2014-12-19 22:00:11 +0200 |
---|---|---|
committer | Peter <peter@smitmail.eu> | 2014-12-19 22:00:11 +0200 |
commit | 007cf33e884cc5a7d686e4529f36c7a936838b32 (patch) | |
tree | 66dccdfeaa6b3893b0a87913df94ccd8bb5f8a0c /modules | |
parent | b231b8c927d02c02466ea67742b63d2d67722bed (diff) | |
download | gitea-007cf33e884cc5a7d686e4529f36c7a936838b32.tar.gz gitea-007cf33e884cc5a7d686e4529f36c7a936838b32.zip |
Remove standard mailer port lines
This lines got committed by accident. They do actually nothing, as SplitHostPort will give an error if port is not given.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mailer/mailer.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index 211ad59cdd..f17e5c2736 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -73,10 +73,6 @@ func sendMail(settings *setting.Mailer, from string, recipients []string, msgCon return err } - if len(port) == 0 { - port = "587" - } - tlsconfig := &tls.Config{ InsecureSkipVerify: settings.SkipVerify, ServerName: host, |