Skip to content

Commit

Permalink
Trim dots for host
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Mar 8, 2025
1 parent 8ccd7ea commit b1bf3c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/blackhole/adlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ func (r *Adlist) Refresh() error {

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

0 comments on commit b1bf3c2

Please sign in to comment.