Skip to content

Commit 61e922c

Browse files
committed
Fix
1 parent 58d8326 commit 61e922c

File tree

5 files changed

+26
-36
lines changed

5 files changed

+26
-36
lines changed

changelog.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# BREAKING CHANGES
2-
- 完全重构了模块,请自行备份旧版配置文件(建议直接重新配置)
3-
- completely refactored the module, please backup the old configuration file by yourself (it is recommended to reconfigure directly)
4-
- 更新了DNS服务器,以及广告过滤规则,以及README.md
5-
- update DNS server and ad filter rules and README.md
6-
- 新增了配置文件,可以在`/data/adb/agh/scripts/config.sh`中修改配置
7-
- added configuration file, you can modify the configuration in `/data/adb/agh/scripts/config.sh`
8-
- 新增在 Magisk/KernelSU 中实时启动/停止模块的功能
9-
- added the ability to start/stop the module in real-time in Magisk/KernelSU
10-
- 修改备份逻辑,现在会自动备份原模块
11-
- modified the backup logic, now it will automatically backup the original module
12-
- 新增黑白名单功能,理论上是可以分应用,不过目前貌似没有效果,请自行测试
13-
- added black and white list function, theoretically can be separated by application, but currently seems to have no effect, please test by yourself
1+
# ChangeLog
2+
- 修复禁用ipv6时的问题
3+
- Fix disable ipv6

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=20240926
4-
versionCode=19
3+
version=20240929
4+
versionCode=20
55
author=twoone3
66
description=Filter ads at the DNS level
77
updateJson=https://raw.githubusercontent.com/twoone-3/AdGuardHomeForMagisk/main/version.json

scripts/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fi
1010
# false: 关闭
1111
manual=false
1212

13-
# 是否开启 ipv6,默认关闭,开启可能导致某些应用走v6无法屏蔽广告
13+
# 是否开启 ipv6 DNS 查询,建议关闭
1414
# true: 开启
1515
# false: 关闭
1616
ipv6=false

scripts/iptables.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,31 @@ disable_iptables() {
4747
}
4848

4949
enable_ipv6() {
50-
# $ip6tables_w -t filter -D OUTPUT -p udp --dport 53 -j DROP
51-
# $ip6tables_w -t filter -D OUTPUT -p tcp --dport 53 -j DROP
50+
$ip6tables_w -t filter -D OUTPUT -p udp --dport 53 -j DROP
51+
$ip6tables_w -t filter -D OUTPUT -p tcp --dport 53 -j DROP
5252

53-
sysctl -w net.ipv4.ip_forward=1
54-
sysctl -w net.ipv6.conf.all.forwarding=1
53+
# sysctl -w net.ipv4.ip_forward=1
54+
# sysctl -w net.ipv6.conf.all.forwarding=1
5555

56-
sysctl -w net.ipv6.conf.all.accept_ra=2
57-
sysctl -w net.ipv6.conf.wlan0.accept_ra=2
58-
sysctl -w net.ipv6.conf.all.disable_ipv6=0
59-
sysctl -w net.ipv6.conf.default.disable_ipv6=0
60-
sysctl -w net.ipv6.conf.wlan0.disable_ipv6=0
56+
# sysctl -w net.ipv6.conf.all.accept_ra=2
57+
# sysctl -w net.ipv6.conf.wlan0.accept_ra=2
58+
# sysctl -w net.ipv6.conf.all.disable_ipv6=0
59+
# sysctl -w net.ipv6.conf.default.disable_ipv6=0
60+
# sysctl -w net.ipv6.conf.wlan0.disable_ipv6=0
6161
}
6262

6363
disable_ipv6() {
64-
# $ip6tables_w -t filter -A OUTPUT -p udp --dport 53 -j DROP
65-
# $ip6tables_w -t filter -A OUTPUT -p tcp --dport 53 -j DROP
64+
$ip6tables_w -t filter -A OUTPUT -p udp --dport 53 -j DROP
65+
$ip6tables_w -t filter -A OUTPUT -p tcp --dport 53 -j DROP
6666

67-
sysctl -w net.ipv4.ip_forward=1
68-
sysctl -w net.ipv6.conf.all.forwarding=0
67+
# sysctl -w net.ipv4.ip_forward=1
68+
# sysctl -w net.ipv6.conf.all.forwarding=0
6969

70-
sysctl -w net.ipv6.conf.all.accept_ra=0
71-
sysctl -w net.ipv6.conf.wlan0.accept_ra=0
72-
sysctl -w net.ipv6.conf.all.disable_ipv6=1
73-
sysctl -w net.ipv6.conf.default.disable_ipv6=1
74-
sysctl -w net.ipv6.conf.wlan0.disable_ipv6=1
70+
# sysctl -w net.ipv6.conf.all.accept_ra=0
71+
# sysctl -w net.ipv6.conf.wlan0.accept_ra=0
72+
# sysctl -w net.ipv6.conf.all.disable_ipv6=1
73+
# sysctl -w net.ipv6.conf.default.disable_ipv6=1
74+
# sysctl -w net.ipv6.conf.wlan0.disable_ipv6=1
7575
}
7676

7777
case "$1" in

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"versionCode": 19,
3-
"version": "20240926",
2+
"versionCode": 20,
3+
"version": "20240929",
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)