mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-04 17:53:09 +08:00
Added connection refused error to skip with MaxHostError option (#2955)
This commit is contained in:
@@ -127,7 +127,7 @@ func (c *Cache) MarkFailed(value string, err error) {
|
||||
_ = c.failedTargets.Set(finalValue, numberOfErrorsValue+1)
|
||||
}
|
||||
|
||||
var checkErrorRegexp = regexp.MustCompile(`(no address found for host|Client\.Timeout exceeded while awaiting headers|could not resolve host)`)
|
||||
var checkErrorRegexp = 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.
|
||||
|
||||
Reference in New Issue
Block a user