This commit is contained in:
Joel Studler 2024-01-26 18:27:28 +01:00
parent 1bc685774e
commit b716b764af

View File

@ -190,7 +190,10 @@ func (cs *crdSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error
illegalTarget := false
for _, target := range ep.Targets {
if strings.HasSuffix(target, ".") {
if ep.RecordType != "NAPTR" && strings.HasSuffix(target, ".") {
illegalTarget = true
break
} else if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") {
illegalTarget = true
break
}