Skip to content

Commit

Permalink
remove protocol (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir authored Jan 24, 2025
1 parent da756e8 commit 4da8c77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions v2/pkg/runner/enumerate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
const maxNumCount = 2

var replacer = strings.NewReplacer(
"/", "",
"•.", "",
"•", "",
"*.", "",
Expand Down
1 change: 1 addition & 0 deletions v2/pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (r *Runner) EnumerateMultipleDomainsWithCtx(ctx context.Context, reader io.
ip, _ := regexp.Compile(`^([0-9\.]+$)`)
for scanner.Scan() {
domain := preprocessDomain(scanner.Text())
domain = replacer.Replace(domain)

if domain == "" || (r.options.ExcludeIps && ip.MatchString(domain)) {
continue
Expand Down

0 comments on commit 4da8c77

Please sign in to comment.