适配ax6s小米镜像化系统设备使用iptables增强模式开启本机代理

This commit is contained in:
Lemoe
2022-05-31 12:58:37 +08:00
committed by GitHub
parent 5be3fad5f6
commit e080e6acf8
2 changed files with 40 additions and 16 deletions

View File

@@ -562,6 +562,9 @@ localproxy(){
if [ -w /etc/systemd/system/clash.service -o -w /usr/lib/systemd/system/clash.service -o -x /bin/su ];then
local_type="iptables增强模式"
setconfig local_type $local_type
elif [ -f /etc/rc.common -a -w /etc/passwd ]; then
local_type="iptables增强模式"
setconfig local_type $local_type
else
echo -e "\033[31m当前设备无法使用增强模式\033[0m"
sleep 1