Skip to content

Commit

Permalink
Merge pull request #1790 from projectdiscovery/fix_no_fallback_flags
Browse files Browse the repository at this point in the history
do not trim protocol
  • Loading branch information
Mzack9999 authored Jun 27, 2024
2 parents 2316be5 + 7e7f73a commit 37610a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ func (r *Runner) process(t string, wg *syncutil.AdaptiveWaitGroup, hp *httpx.HTT
protocols = []string{httpx.HTTPS, httpx.HTTP}
}

for target := range r.targets(hp, stringz.TrimProtocol(t, scanopts.NoFallback || scanopts.NoFallbackScheme)) {
for target := range r.targets(hp, t) {
// if no custom ports specified then test the default ones
if len(customport.Ports) == 0 {
for _, method := range scanopts.Methods {
Expand Down

0 comments on commit 37610a3

Please sign in to comment.