From 2d7948af556aa12c10a74f43d88569a2332fea23 Mon Sep 17 00:00:00 2001 From: Sandeep Singh Date: Wed, 4 Jan 2023 00:43:18 +0530 Subject: [PATCH] Fixing host skipping error (#3143) * removed error resulting into excessive error count * banner update --- v2/pkg/catalog/config/config.go | 2 +- v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/pkg/catalog/config/config.go b/v2/pkg/catalog/config/config.go index 4032b143..bb7cac09 100644 --- a/v2/pkg/catalog/config/config.go +++ b/v2/pkg/catalog/config/config.go @@ -32,7 +32,7 @@ type Config struct { const nucleiConfigFilename = ".templates-config.json" // Version is the current version of nuclei -const Version = `2.8.4` +const Version = `2.8.5` var customConfigDirectory string diff --git a/v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go b/v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go index 6048ee13..b6cded59 100644 --- a/v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go +++ b/v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go @@ -126,7 +126,7 @@ func (c *Cache) MarkFailed(value string, err error) { _ = c.failedTargets.Set(finalValue, existingCacheItemValue) } -var reCheckError = regexp.MustCompile(`(no address found for host|could not connect to any address|Client\.Timeout exceeded while awaiting headers|could not resolve host|connection refused|context deadline exceeded)`) +var reCheckError = regexp.MustCompile(`(no address found for host|Client\.Timeout exceeded while awaiting headers|could not resolve host|connection refused)`) // checkError checks if an error represents a type that should be // added to the host skipping table.