Failure only for top level failure

This commit is contained in:
ooni noob 2022-11-20 16:22:00 +01:00
parent 3cf6f976ae
commit c80dca4a59

View File

@ -144,7 +144,6 @@ func (r SMTPRunner) conn(addr string, port string) (net.Conn, bool) {
conn, err := dialer.DialContext(r.ctx, "tcp", net.JoinHostPort(addr, port))
r.tk.TCPConnect = append(r.tk.TCPConnect, r.trace.TCPConnects()...)
if err != nil {
r.tk.Failure = *tracex.NewFailure(err)
return nil, false
}
return conn, true