author | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-03-12 21:46:21 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-03-12 22:07:11 UTC |
parent | 150976b905e30d2db4eb1a56db2db0694f03108c |
internal/courier/smtp.go | +1 | -1 |
diff --git a/internal/courier/smtp.go b/internal/courier/smtp.go index 7e16022..9f0cb74 100644 --- a/internal/courier/smtp.go +++ b/internal/courier/smtp.go @@ -260,7 +260,7 @@ func lookupMXs(tr *trace.Trace, domain string) ([]string, error) { // Unfortunately, go's API doesn't let us easily distinguish between // them. For now, if the error is permanent, we assume it's because // there was no MX and fall back, otherwise we return. - // TODO: Find a better way to do this. + // TODO: Use dnsErr.IsNotFound once we can use Go >= 1.13. dnsErr, ok := err.(*net.DNSError) if !ok { tr.Debugf("MX lookup error: %v", err)