mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Add support for "exists" element in SPF. (#356)
* Include support for "exists" element in SPF. * Add exists: SPF entry to test support
This commit is contained in:
committed by
Tom Limoncelli
parent
7c1f45b002
commit
f77f202b65
@ -79,6 +79,8 @@ func Parse(text string, dnsres Resolver) (*SPFRecord, error) {
|
||||
return nil, errors.Errorf("In included spf: %s", err)
|
||||
}
|
||||
}
|
||||
} else if strings.HasPrefix(part, "exists:") {
|
||||
p.IsLookup = true
|
||||
} else {
|
||||
return nil, errors.Errorf("Unsupported spf part %s", part)
|
||||
}
|
||||
|
Reference in New Issue
Block a user