mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +00:00
smtp: Remove --experimental__enable_sts flag
This patch removes the --experimental__enable_sts flag, making STS checking the default.
This commit is contained in:
@@ -32,11 +32,6 @@ var (
|
|||||||
// TODO: replace this with proper lookup interception once it is supported
|
// TODO: replace this with proper lookup interception once it is supported
|
||||||
// by Go.
|
// by Go.
|
||||||
netLookupMX = net.LookupMX
|
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.
|
// Exported variables.
|
||||||
@@ -232,9 +227,6 @@ retry:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *SMTP) fetchSTSPolicy(tr *trace.Trace, domain string) *sts.Policy {
|
func (s *SMTP) fetchSTSPolicy(tr *trace.Trace, domain string) *sts.Policy {
|
||||||
if !*enableSTS {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
if s.STSCache == nil {
|
if s.STSCache == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user