From ccb9ba47d203c72146236aedd48e7a904be6837c Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sun, 1 Jul 2018 12:39:54 +0100 Subject: [PATCH] smtp: Remove --experimental__enable_sts flag This patch removes the --experimental__enable_sts flag, making STS checking the default. --- internal/courier/smtp.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/courier/smtp.go b/internal/courier/smtp.go index 8bb9526..b13e4b6 100644 --- a/internal/courier/smtp.go +++ b/internal/courier/smtp.go @@ -32,11 +32,6 @@ var ( // TODO: replace this with proper lookup interception once it is supported // by Go. netLookupMX = net.LookupMX - - // Enable STS policy checking; this is an experimental flag and will be - // removed in the future, once this is made the default. - enableSTS = flag.Bool("experimental__enable_sts", false, - "enable STS policy checking; EXPERIMENTAL") ) // Exported variables. @@ -232,9 +227,6 @@ retry: } func (s *SMTP) fetchSTSPolicy(tr *trace.Trace, domain string) *sts.Policy { - if !*enableSTS { - return nil - } if s.STSCache == nil { return nil }