From c74367d82c1c7bec393548d2e5014c794333822f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 16 Oct 2018 17:25:40 +0200 Subject: urlfilter: Add FilterTree class FilterTree is a class that holds filter rules, sorted by the domain they are to be applied on. The rules are to follow FilterLeaf as interface. - Add a hostlist rule format to FilterTree. - Add a test for hostlist format. --- test/hostlist.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/hostlist.txt (limited to 'test/hostlist.txt') diff --git a/test/hostlist.txt b/test/hostlist.txt new file mode 100644 index 0000000..a0b4e5c --- /dev/null +++ b/test/hostlist.txt @@ -0,0 +1,6 @@ +# This is a comment, and after it comes a blank line + +127.0.0.1 localhost.localdomain + +0.0.0.0 blockeddomain.com +0.0.0.0 blockeddomain.first blockeddomain.second -- cgit v1.2.1