Skip to content

Commit

Permalink
dnsforward: ipset file comments
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Apr 2, 2024
1 parent d951692 commit 53c7213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dnsforward/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ func (s *Server) prepareIpsetListSettings() (err error) {
}

ipsets := stringutil.SplitTrimmed(string(data), "\n")
ipsets = stringutil.FilterOut(ipsets, IsCommentOrEmpty)

log.Debug("dns: using %d ipset rules from file %q", len(ipsets), fn)

Expand Down

0 comments on commit 53c7213

Please sign in to comment.