mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Include PTR types in SPF Builder (#378)
* Include PTR types in SPF * Simplify PTR and Exists logic * Include PTR test case * Include PTR test case * Remove extra }
This commit is contained in:
committed by
Craig Peterson
parent
b0f86bc007
commit
95ebf1d35b
@ -82,7 +82,7 @@ func Parse(text string, dnsres Resolver) (*SPFRecord, error) {
|
||||
return nil, errors.Errorf("In included spf: %s", err)
|
||||
}
|
||||
}
|
||||
} else if strings.HasPrefix(part, "exists:") {
|
||||
} else if strings.HasPrefix(part, "exists:") || strings.HasPrefix(part, "ptr:") {
|
||||
p.IsLookup = true
|
||||
} else {
|
||||
return nil, errors.Errorf("Unsupported spf part %s", part)
|
||||
|
Reference in New Issue
Block a user