Skip to content

Commit

Permalink
Be more tolerant of stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Mar 8, 2025
1 parent 2077270 commit 345309f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generator/blackhole/adlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ func (r *Adlist) Refresh() error {
continue
}

split := strings.Split(line, " ")
split := strings.Split(strings.ReplaceAll(line, "\t", " "), " ")
for _, host := range split {
if host == "" || host == "." {
continue
}
if hardcodeIgnoredAdHosts[host] {
continue
}
Expand Down

0 comments on commit 345309f

Please sign in to comment.