Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions mechanism.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,13 @@ func (m *Mechanism) Evaluate(ip string, count int) (Result, error) {

// There is no clear definition of what to do with errors on a
// redirected domain. Trying to make wise choices here.
if err != nil {
switch err {
case ErrFailedLookup:
return TempError, nil
default:
return PermError, nil
case ErrFailedLookup:
return TempError, nil
default:
return PermError, nil
}
}

return spf.Test(ip), nil
Expand Down