Skip to content

Commit bf4a009

Browse files
committed
fix a bug and update README
1 parent 6008a19 commit bf4a009

File tree

7 files changed

+21
-19
lines changed

7 files changed

+21
-19
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
关注我们的频道以获取最新消息,或者加入我们的群组进行讨论!
1313

1414
# 用法
15-
- 使用前需在设置里关闭 `私人/专用dns`,在 Magisk/KernelSU 刷入并按照操作提示配置完成后即可使用,AdGuardHome 后台管理地址为 http://127.0.0.1:3000 ,默认用户名/密码root
15+
- 使用前需在设置里关闭 `私人/专用dns`,在 Magisk/KernelSU 刷入后即可使用,本模块默认后台管理地址为 http://127.0.0.1:3000 ,默认用户名/密码root
16+
- 如果你从来没有接触过 AdGuardHome,你可以在这里找到[官方文档](https://github.com/AdguardTeam/AdGuardHome),或者也可以看看这篇教程[AdGuard Home 中文指南](https://www.timochan.cn/posts/jc/adguard_home_configuration_guide)
1617

1718
# 特性
18-
- DNS 为腾讯和阿里,备用 DNS 为 Cloudflare 和 Google,你可以在 AdGuardHome 的 DNS 设置里更改来满足你的需求
19+
- DNS 服务器选用腾讯和阿里的公共 DNS,你也可以在 AdGuardHome 的 DNS 设置里更改来满足你的需求
1920
- 仅内置[秋风广告规则](https://github.com/TG-Twilight/AWAvenue-Ads-Rule),精准,轻量,少误杀
2021
- 在 Magisk/KernelSU 中可以通过模块开关实时启动/关闭模块
2122
- 可修改位于 `/data/adb/agh/scripts/config.sh` 的配置文件来调整配置

README_en.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ A Magisk/KernelSU module to block ads by redirecting and filtering DNS requests.
1212
Follow our channel for the latest news, or join our group for discussion!
1313

1414
# Usage
15-
- Disable `private/specialized dns` in settings before use, then flush it in Magisk/KernelSU and follow the instructions to configure it, AdGuardHome admin address is http://127.0.0.1:3000, default username/password root.
15+
- Before using, turn off `Private/Custom DNS` in the settings, flash it in Magisk/KernelSU, and you can use it after installation. The default background management address is http://127.0.0.1:3000, and the default username/password is root.
16+
- If you have never used AdGuardHome before, you can find the [official documentation](https://github.com/AdguardTeam/AdGuardHome) here, or you can also take a look at this tutorial [AdGuard Home 中文指南](https://www.timochan.cn/posts/jc/adguard_home_configuration_guide)
1617

1718
# Features
18-
- The primary DNS is Tencent DNSPod public DNS and AliCloud DNS, the backup DNS is Cloudflare DNS and Google DNS, you can change the DNS settings in AdGuardHome to meet your needs.
19+
- The DNS server uses Tencent and Alibaba's public DNS, you can also change it in the DNS settings of AdGuardHome to meet your needs.
1920
- Only built-in [Autumn Breeze Ad Rule](https://github.com/TG-Twilight/AWAvenue-Ads-Rule), accurate, lightweight, and low false positives.
2021
- In Magisk/KernelSU, you can start/stop the module in real-time through the module switch.
2122
- You can modify the configuration file located in `/data/adb/agh/scripts/config.sh` to adjust the configuration.

agh_service.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
AGH_DIR="/data/adb/agh"
99
SCRIPT_DIR="$AGH_DIR/scripts"
1010

11-
$SCRIPT_DIR/service.sh start >>$AGH_DIR/agh.log 2>&1 &&
12-
$SCRIPT_DIR/iptables.sh enable >>$AGH_DIR/agh.log 2>&1
11+
if [ ! -f "/data/adb/modules/AdGuardHome/disable" ]; then
12+
$SCRIPT_DIR/service.sh start >>$AGH_DIR/agh.log 2>&1 &&
13+
$SCRIPT_DIR/iptables.sh enable >>$AGH_DIR/agh.log 2>&1
14+
fi
1315

1416
inotifyd $SCRIPT_DIR/inotify.sh /data/adb/modules/AdGuardHome:d,n >/dev/null 2>&1 &
1517
) &

bin/AdGuardHome.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@ dns:
2323
ratelimit_whitelist: []
2424
refuse_any: true
2525
upstream_dns:
26-
- https://223.5.5.5/dns-query
27-
- https://1.12.12.12/dns-query
26+
- tls://223.5.5.5
27+
- tls://1.12.12.12
2828
upstream_dns_file: ""
2929
bootstrap_dns:
3030
- 223.5.5.5
3131
- 119.29.29.29
32-
- 1.1.1.1
33-
- 8.8.8.8
34-
fallback_dns:
35-
- https://1.1.1.1/dns-query
36-
- https://8.8.8.8/dns-query
32+
fallback_dns: []
3733
upstream_mode: load_balance
3834
fastest_timeout: 1s
3935
allowed_clients: []

changelog.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# ChangeLog
2-
- 修复禁用ipv6时的问题
3-
- Fix disable ipv6
2+
- 修复关闭模块时开机仍然启动的问题
3+
- fix the problem that the module is still started when the module is closed
4+
- 更新了 README.md
5+
- update README.md

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=AdGuardHome
22
name=AdGuardHome for Magisk
3-
version=20240929
4-
versionCode=20
3+
version=20241005
4+
versionCode=21
55
author=twoone3
66
description=Filter ads at the DNS level
77
updateJson=https://raw.githubusercontent.com/twoone-3/AdGuardHomeForMagisk/main/version.json

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"versionCode": 20,
3-
"version": "20240929",
2+
"versionCode": 21,
3+
"version": "20241005",
44
"zipUrl": "https://github.com/twoone-3/AdGuardHomeForMagisk/releases/latest/download/AdGuardHomeForMagisk-arm64.zip",
55
"changelog": "https://raw.githubusercontent.com/twoone-3/AdGuardHomeForMagisk/main/changelog.md"
66
}

0 commit comments

Comments
 (0)