Skip to content

Commit

Permalink
Add new checksum feature for more detection case
Browse files Browse the repository at this point in the history
  • Loading branch information
j3ssie committed Feb 3, 2021
1 parent cf58a71 commit 54537ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ func (r *Record) DnsDetector() bool {
}

func GetDnsComponent(record Record, componentName string) string {
var any string
for _, dnsResult := range record.Dns.Results {
if dnsResult.RecordType == strings.TrimSpace(componentName) {
return dnsResult.Data
}
any += dnsResult.Data + "\n"
}
return ""
return any
}

0 comments on commit 54537ea

Please sign in to comment.