Skip to content

Commit 62af740

Browse files
committed
FQDNs with CNAME records are included
1 parent c2a6afa commit 62af740

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/plugins/service_discovery/http_probes/fqdn_endpoint.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ func (fe *fqdnEndpoint) check(e *et.Event) error {
3737
if !e.Session.Config().Active {
3838
return nil
3939
}
40-
if !support.HasDNSRecordType(e, int(dns.TypeA)) &&
40+
if !support.HasDNSRecordType(e, int(dns.TypeCNAME)) &&
41+
!support.HasDNSRecordType(e, int(dns.TypeA)) &&
4142
!support.HasDNSRecordType(e, int(dns.TypeAAAA)) {
4243
return nil
4344
}

0 commit comments

Comments
 (0)