Skip to content

Commit 774c3e6

Browse files
committed
fork from top adgh
1 parent 30e160b commit 774c3e6

File tree

13 files changed

+539
-173
lines changed

13 files changed

+539
-173
lines changed
Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ users:
1010
auth_attempts: 5
1111
block_auth_min: 15
1212
http_proxy: ""
13-
language: zh-cn
13+
language: ""
1414
theme: auto
1515
dns:
1616
bind_hosts:
@@ -23,17 +23,18 @@ dns:
2323
ratelimit_whitelist: []
2424
refuse_any: true
2525
upstream_dns:
26-
- https://1.12.12.12/dns-query
27-
- https://120.53.53.53/dns-query
26+
- 10.35.53.10:3553
27+
- '#上面一行用于内网解析,若不用可删'
2828
- https://223.5.5.5/dns-query
29-
- https://223.6.6.6/dns-query
29+
- https://1.12.12.12/dns-query
30+
- '#一般情况上面两行不可删!禁止填写53端口常规DNS上游'
31+
- '#强制使用并行请求,其它禁选'
3032
upstream_dns_file: ""
3133
bootstrap_dns:
32-
- 1.1.1.1
33-
- 8.8.8.8
34+
- 10.35.53.10:3553
3435
fallback_dns:
35-
- https://1.1.1.1/dns-query
36-
upstream_mode: load_balance
36+
- '#此处留空不要填'
37+
upstream_mode: parallel
3738
fastest_timeout: 1s
3839
allowed_clients: []
3940
disallowed_clients: []
@@ -44,10 +45,10 @@ dns:
4445
trusted_proxies:
4546
- 127.0.0.0/8
4647
- ::1/128
47-
cache_size: 33554432
48+
cache_size: 4194304
4849
cache_ttl_min: 0
49-
cache_ttl_max: 0
50-
cache_optimistic: true
50+
cache_ttl_max: 300
51+
cache_optimistic: false
5152
bogus_nxdomain: []
5253
aaaa_disabled: false
5354
enable_dnssec: false
@@ -69,13 +70,14 @@ dns:
6970
serve_http3: false
7071
use_http3_upstreams: false
7172
serve_plain_dns: true
73+
hostsfile_enabled: true
7274
tls:
7375
enabled: false
7476
server_name: ""
7577
force_https: false
7678
port_https: 443
7779
port_dns_over_tls: 853
78-
port_dns_over_quic: 784
80+
port_dns_over_quic: 853
7981
port_dnscrypt: 0
8082
dnscrypt_config_file: ""
8183
allow_unencrypted_doh: false
@@ -85,20 +87,22 @@ tls:
8587
private_key_path: ""
8688
strict_sni_check: false
8789
querylog:
90+
dir_path: ""
8891
ignored: []
8992
interval: 6h
9093
size_memory: 1000
9194
enabled: true
9295
file_enabled: true
9396
statistics:
97+
dir_path: ""
9498
ignored: []
9599
interval: 24h
96100
enabled: true
97101
filters:
98102
- enabled: true
99-
url: https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/main/AWAvenue-Ads-Rule.txt
100-
name: 秋风广告规则
101-
id: 10086
103+
url: https://adguardteam.github.io/HostlistsRegistry/assets/filter_53.txt
104+
name: AWAvenue Ads Rule
105+
id: 1721028739
102106
whitelist_filters: []
103107
user_rules: []
104108
dhcp:
@@ -142,8 +146,8 @@ filtering:
142146
safesearch_cache_size: 1048576
143147
parental_cache_size: 1048576
144148
cache_time: 30
145-
filters_update_interval: 168
146-
blocked_response_ttl: 30
149+
filters_update_interval: 24
150+
blocked_response_ttl: 10
147151
filtering_enabled: true
148152
parental_enabled: false
149153
safebrowsing_enabled: false
@@ -162,10 +166,10 @@ log:
162166
max_size: 100
163167
max_age: 3
164168
compress: false
165-
local_time: true
169+
local_time: false
166170
verbose: false
167171
os:
168172
group: ""
169173
user: ""
170174
rlimit_nofile: 0
171-
schema_version: 27
175+
schema_version: 28

apply_iptables.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

customize.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
if [ "$ARCH" != "arm64" ]; then
2-
abort "仅支持 arm64 架构,安装失败"
1+
ui_print " -------------------------- "
2+
ui_print " ------ 安装中,请稍等 ------ "
3+
sleep 1
4+
cp "$MODPATH/module.prop" "$MODPATH/t_module"
5+
if [ "$IS64BIT" = 'true' ]; then
6+
cp "$MODPATH/linux_arm64/AdGuardHome" "$MODPATH/AdGuardHome" > /dev/null 2>&1
7+
ui_print " -------------------------- "
8+
else
9+
cp "$MODPATH/linux_armv7/AdGuardHome" "$MODPATH/AdGuardHome" > /dev/null 2>&1
10+
ui_print " -------------------------- "
311
fi
4-
5-
ADG_DIR="$MODPATH/bin"
6-
chmod +x "$ADG_DIR/AdGuardHome" "$MODPATH/apply_iptables.sh" "$MODPATH/flush_iptables.sh"
7-
8-
ui_print "安装成功,请重启设备"
12+
sleep 1
13+
rm -rf "$MODPATH/linux_arm64"
14+
rm -rf "$MODPATH/linux_armv7"
15+
ui_print " ----- 安装已完成,请重启 ---- "
16+
ui_print " -------------------------- "

0 commit comments

Comments
 (0)