mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fix DNS path check
* Make it dynamic by the domain given for the check. * Change reporting text to be more clear about which is the dynamic part (in lack of direct access to the path which was checked.)
This commit is contained in:
parent
e4c2c00879
commit
2cfb4b8e49
2 changed files with 8 additions and 8 deletions
|
|
@ -137,11 +137,11 @@ func (r *wellknownMetadataReporter) report(p *processor, domain *Domain) {
|
|||
func (r *dnsPathReporter) report(p *processor, domain *Domain) {
|
||||
req := r.requirement(domain)
|
||||
if !p.badDNSPath.used() {
|
||||
req.message("No csaf.data.security.domain.tld DNS record checked.")
|
||||
req.message("No download from https://csaf.data.security.DOMAIN attempted.")
|
||||
return
|
||||
}
|
||||
if len(p.badDNSPath) == 0 {
|
||||
req.message("csaf.data.security.domain.tld DNS record is available and serves the provider-metadata.json.")
|
||||
req.message("https://csaf.data.security.DOMAIN is available and serves the provider-metadata.json.")
|
||||
return
|
||||
}
|
||||
req.Messages = p.badDNSPath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue