Fix the bug that nuclei keeps scanning for http connection failures (#4265)

* misc update

* Fix the bug that nuclei keeps scanning for http connection failures

* Adding common error messages

* remove

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
Co-authored-by: Wing <taiyuan.yang@shopee.com>
This commit is contained in:
Wing 2023-11-28 23:46:23 +08:00 committed by GitHub
parent 7cd340b29a
commit b633ef63dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ func (c *Cache) MarkFailed(value string, err error) {
_ = c.failedTargets.Set(finalValue, existingCacheItemValue) _ = c.failedTargets.Set(finalValue, existingCacheItemValue)
} }
var reCheckError = regexp.MustCompile(`(no address found for host|Client\.Timeout exceeded while awaiting headers|could not resolve host|connection refused)`) var reCheckError = regexp.MustCompile(`(no address found for host|Client\.Timeout exceeded while awaiting headers|could not resolve host|connection refused|connection reset by peer)`)
// checkError checks if an error represents a type that should be // checkError checks if an error represents a type that should be
// added to the host skipping table. // added to the host skipping table.