File tree Expand file tree Collapse file tree 5 files changed +12
-15
lines changed
Expand file tree Collapse file tree 5 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 44
55sing-box 配置文件 config.json 放在 ` /data/adb/singbox/ ` 目录, 重启手机模块生效
66
7- ** 不修改手机 iptables 规则 **
7+ ** 黑白名单 **
88
9- 发现注释 iptables 相关的代码,手机流量正常走代理(不知道具体原因)
9+ - ` /data/adb/singbox/include.list ` 文件中的应用包名走代理
1010
11- # 参考
12- - https://github.com/taamarin/box_for_magisk
11+ - ` /data/adb/singbox/exclude.list ` 文件中的应用包名不走代理
12+
13+ ` exclude.list ` 优先级高于 ` include.list ` :
14+
15+ 如果一个应用的包名同时出现在 ` exclude.list ` 和 ` include.list ` 中,这个应用不走代理。
1316
Original file line number Diff line number Diff line change 11id=box_for_magisk
22name=SingBox for Magisk
3- version=v1.2.4
4- versionCode=20250317
3+ version=v1.2.5
4+ versionCode=20250318
55author=gitduk
66description=use sing-box for tunnel proxy on android device
Original file line number Diff line number Diff line change @@ -19,11 +19,7 @@ init_chains() {
1919}
2020
2121cleanup_limit () {
22- local iptables=" iptables -w 64"
23-
24- # 红魔9Pro
25- ${iptables} -D oem_out -j zte_fw_data_align_out 2> /dev/null
26- ${iptables} -D OUTPUT -j zte_fw_gms 2> /dev/null
22+ ${scripts_dir} /rmlimit.sh
2723}
2824
2925# 统一的清理函数
Original file line number Diff line number Diff line change @@ -5,4 +5,3 @@ iptables="iptables -w 64"
55# 红魔9Pro
66${iptables} -D oem_out -j zte_fw_data_align_out 2> /dev/null
77${iptables} -D OUTPUT -j zte_fw_gms 2> /dev/null
8-
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ start_box() {
150150 fi
151151
152152 # 设置 iptables 规则
153- # ${scripts_dir}/iptables.sh "${network_mode}"
153+ ${scripts_dir} /iptables.sh " ${network_mode} "
154154
155155 # IPv6 配置
156156 setup_ipv6
@@ -183,7 +183,7 @@ stop_box() {
183183 fi
184184
185185 # 清理 iptables 规则
186- # ${scripts_dir}/iptables.sh "clear"
186+ ${scripts_dir} /iptables.sh " clear"
187187
188188 log INFO " ${bin_name} stopped"
189189
@@ -242,4 +242,3 @@ case "$1" in
242242 exit 1
243243 ;;
244244esac
245-
You can’t perform that action at this time.
0 commit comments