Skip to content

Commit

Permalink
fix: remove virtual match string on NVD API Request (#6177)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Dec 1, 2023
1 parent 9c604f3 commit bb932af
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,12 @@ private boolean processApi() throws UpdateException {
builder.withDelay(8000);
}
builder.withResultsPerPage(RESULTS_PER_PAGE);
final String virtualMatch = settings.getString(Settings.KEYS.CVE_CPE_STARTS_WITH_FILTER);
if (virtualMatch != null) {
builder.withVirtualMatchString(virtualMatch);
}
//removed due to the virtualMatch filter causing overhead with the NVD API
//final String virtualMatch = settings.getString(Settings.KEYS.CVE_CPE_STARTS_WITH_FILTER);
//if (virtualMatch != null) {
// builder.withVirtualMatchString(virtualMatch);
//}

final int retryCount = settings.getInt(Settings.KEYS.NVD_API_MAX_RETRY_COUNT, 10);
builder.withMaxRetryCount(retryCount);
long delay = 0;
Expand Down

0 comments on commit bb932af

Please sign in to comment.