소스 검색

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.
Peter 10 년 전
부모
커밋
007cf33e88
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      modules/mailer/mailer.go

+ 0 - 4
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,