Skip to content

Commit

Permalink
fetchIPAddresses after finding a certificate, not for every certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Magne committed Apr 14, 2022
1 parent ec6c9d3 commit e340e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib.go
Expand Up @@ -38,6 +38,7 @@ func CertCheckWorker(r string, homoglyph *map[string]string, msgChan chan []byte
if !IsMatchingCert(homoglyph, result, reg) {
continue
}
result.Addresses = fetchIPAddresses(result.Domain)
bufferChan <- result
}
}
Expand All @@ -59,7 +60,6 @@ func ParseResultCertificate(msg []byte) (*model.Result, error) {
Addresses: []string{},
}

r.Addresses = fetchIPAddresses(r.Domain)
return r, nil
}

Expand Down

0 comments on commit e340e72

Please sign in to comment.