aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-04-19 22:18:26 +0700
committerShulhan <ms@kilabit.info>2022-04-19 22:18:26 +0700
commit4f5896b2cfd316cb388d39e3772439f48b215fda (patch)
treeba516a4bd7c94d3429af6cb67066c205dd2c1daa /testdata
parent0156deaaaa0edbb93cfbf60a8cac99fc17d63a60 (diff)
downloadrescached-4f5896b2cfd316cb388d39e3772439f48b215fda.tar.xz
all: refactoring the hosts blocks format and location
This changes add new directory called "block.d" under rescached. This directory contains hosts file fetched from URL defined in hosts block configuration. In this way, we did not mixed between user created hosts file and external hosts file. In the configuration file, we changes the hosts block format from single line hosts_block = <URL> into subsection with dynamic name, [block.d "<name>"] name = <name> url = <URL>
Diffstat (limited to 'testdata')
-rw-r--r--testdata/rescached.cfg.test.out37
1 files changed, 37 insertions, 0 deletions
diff --git a/testdata/rescached.cfg.test.out b/testdata/rescached.cfg.test.out
new file mode 100644
index 0000000..adfe7c5
--- /dev/null
+++ b/testdata/rescached.cfg.test.out
@@ -0,0 +1,37 @@
+[rescached]
+file.resolvconf =
+wui.listen = 127.0.0.1:5381
+debug = 2
+
+[block.d "pgl.yoyo.org"]
+name = pgl.yoyo.org
+url = http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext
+
+[block.d "someonewhocares.org"]
+name = someonewhocares.org
+url = http://someonewhocares.org/hosts/hosts
+
+[block.d "test"]
+name = test
+url = http://someurl
+
+[block.d "winhelp2002.mvps.org"]
+name = winhelp2002.mvps.org
+url = http://winhelp2002.mvps.org/hosts.txt
+
+[block.d "www.malwaredomainlist.com"]
+name = www.malwaredomainlist.com
+url = http://www.malwaredomainlist.com/hostslist/hosts.txt
+
+[dns "server"]
+listen = 127.0.0.1:5350
+tls.certificate =
+tls.private_key =
+parent = udp://10.8.0.1
+http.idle_timeout = 0s
+cache.prune_delay = 0s
+cache.prune_threshold = 0s
+http.port = 0
+tls.port = 0
+tls.allow_insecure = true
+doh.behind_proxy = false