Skip to content

Commit

Permalink
Merge pull request #295 from projectdiscovery/bugfix-290
Browse files Browse the repository at this point in the history
Adding error handler
  • Loading branch information
ehsandeep authored May 31, 2021
2 parents f88f51e + 072843d commit bbca0d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,10 @@ retry:
domain = parts[0]
customHost = parts[1]
}
URL, _ := urlutil.Parse(domain)
URL, err := urlutil.Parse(domain)
if err != nil {
return Result{URL: domain, err: err}
}
URL.Scheme = protocol

if !strings.Contains(domain, URL.Port) {
Expand Down

0 comments on commit bbca0d9

Please sign in to comment.