配置更新

This commit is contained in:
Alex Yang
2025-11-23 19:16:42 +08:00
parent f5911af449
commit d870f6bfcc
3 changed files with 13 additions and 2 deletions

View File

@@ -10,12 +10,12 @@
"enableAPI": true "enableAPI": true
}, },
"shield": { "shield": {
"localRulesFile": "rules.txt", "localRulesFile": "data/rules.txt",
"remoteRules": [ "remoteRules": [
"https://example.com/rules.txt" "https://example.com/rules.txt"
], ],
"updateInterval": 3600, "updateInterval": 3600,
"hostsFile": "hosts.txt" "hostsFile": "data/hosts.txt"
}, },
"log": { "log": {
"file": "dns-server.log", "file": "dns-server.log",

6
data/hosts.txt Normal file
View File

@@ -0,0 +1,6 @@
# DNS Server Hosts File
# Generated by DNS Server
::1 localhost
ad.qq.com 127.0.0.1
ad.qq.com 0.0.0.0

5
data/rules.txt Normal file
View File

@@ -0,0 +1,5 @@
||hm.baidu.com
||baidu.com
/.*tracking.*/
/adjust.net/
/ad./