Skip to content

Commit

Permalink
Remove TLD filter flag
Browse files Browse the repository at this point in the history
  • Loading branch information
PolovinaD committed Jul 22, 2022
1 parent e5ffc66 commit c1ee09e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dsieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,15 @@ func main() {
" \033[3m-f 2:4\033[0m baz.tld, bar.baz.tld\n"+
" \033[3m-f :3 \033[0m tld, baz.tld")
outputFilePath = flag.String("o", "", "Output file path, optional")
filterTLD = flag.Bool("t", true, "Filter invalid domains according to Mozilla's publicsuffix list.")
//filterTLD = flag.Bool("t", true, "Filter invalid domains according to Mozilla's publicsuffix list.")
top = flag.Int("top", 0, "Only consider top X subdomains of a certain level and return all their subdomains")

flag.Parse()

// set filterTLD to true by default while removing the flag
t := true
filterTLD = &t

inputUrls := make([]string, 0)
if *inputUrl != "" {
inputUrls = append(inputUrls, *inputUrl)
Expand Down

0 comments on commit c1ee09e

Please sign in to comment.