Skip to content

Commit

Permalink
Merge pull request #1711 from akto-api-security/hotfix/fix_host_valid…
Browse files Browse the repository at this point in the history
…ator

fix host validator for proxy hosts
  • Loading branch information
notshivansh authored Nov 12, 2024
2 parents 13e2e61 + ebfbad1 commit e8b939e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ public String fetchTestingRunResults() {
testingRunResultFilters.add(Filters.eq(TestingRunResult.VULNERABLE, false));
List<String> errorsToSkipTest = TestResult.TestError.getErrorsToSkipTests();
errorsToSkipTest.add(TestResult.API_CALL_FAILED_ERROR_STRING);
errorsToSkipTest.add(TestResult.API_CALL_FAILED_ERROR_STRING_UNREACHABLE);
testingRunResultFilters.add(
Filters.or(
Filters.exists(WorkflowTestingEndpoints._WORK_FLOW_TEST),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static void compute(Set<String> hosts, TestingRunConfig testingRunConfig)
String attemptUrl = getUniformUrlUtil(actualRequest.url());
loggerMaker.infoAndAddToDb("checking reachability for host: " + attemptUrl);
if(!hostReachabilityMap.containsKey(attemptUrl)){
boolean reachable = checkDomainReach(actualRequest, true, type);
boolean reachable = checkDomainReach(actualRequest, false, type);
hostReachabilityMap.put(attemptUrl, reachable);
}
} catch (Exception e) {
Expand Down

0 comments on commit e8b939e

Please sign in to comment.