Implement proposed change by mloiseleur

This commit is contained in:
Joel Studler 2024-02-09 17:23:29 +01:00
parent 0c43e808bb
commit 45579e14b1

View File

@ -193,7 +193,8 @@ func (cs *crdSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error
if ep.RecordType != "NAPTR" && strings.HasSuffix(target, ".") {
illegalTarget = true
break
} else if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") {
}
if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") {
illegalTarget = true
break
}