File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11id=box_for_magisk
22name=SingBox for Magisk
3- version=v1.2.2
3+ version=v1.2.3
44versionCode=20250121
55author=gitduk
66description=use sing-box for tunnel proxy on android device
Original file line number Diff line number Diff line change @@ -14,20 +14,16 @@ init_chains() {
1414
1515 for chain in " ${chains[@]} " ; do
1616 ${iptables} -t ${table} -N ${chain} 2> /dev/null
17- ${iptables} -t ${table} -F ${chain}
17+ ${iptables} -t ${table} -F ${chain} 2> /dev/null
1818 done
1919}
2020
2121cleanup_limit () {
2222 local iptables=" iptables -w 64"
2323
2424 # 红魔9Pro
25- ${iptables} -F zte_fw_data_align_out & > /dev/null
26- ${iptables} -F zte_fw_gms & > /dev/null
27- ${iptables} -R tetherctrl_FORWARD 1 -j ACCEPT & > /dev/null
28- ${iptables} -F zte_fw_net_limit & > /dev/null
29- ${iptables} -F bw_penalty_box & > /dev/null
30- ${iptables} -F st_penalty_reject & > /dev/null
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
3127}
3228
3329# 统一的清理函数
@@ -254,7 +250,7 @@ tun() {
254250}
255251
256252# 清理手机产商的网络限制
257- (sleep 10 && cleanup_limit) &
253+ (sleep 3 && cleanup_limit) &
258254
259255# 主程序入口
260256case " $1 " in
You can’t perform that action at this time.
0 commit comments