v1.3.2-test

~本机代理功能增加iptables增强模式(仅支持Linux系统)
~优化iptables增强模式机制,修复潜在报错
~修复mesh设备开机启动后shellclash无法正常工作的bug(待测试)
This commit is contained in:
juewuy
2021-05-16 22:10:10 +08:00
parent 734c8d3f4a
commit fcfbc29219
8 changed files with 23 additions and 8 deletions

View File

@@ -359,7 +359,7 @@ gettar(){
mv $clashdir/clash.service $sysdir/clash.service
sed -i "s%/etc/clash%$clashdir%g" $sysdir/clash.service
systemctl daemon-reload
useradd shellclash
#useradd shellclash
else
#设为保守模式启动
sed -i '/start_old=*/'d $clashdir/mark
@@ -854,7 +854,8 @@ update(){
rm -rf /etc/systemd/system/clash.service
rm -rf /usr/lib/systemd/system/clash.service
rm -rf /www/clash
userdel -r shellclash
sed -Ei s/0:7890/7890:7890/g /etc/passwd
userdel -r shellclash 2>/dev/null
echo -----------------------------------------------
echo -e "\033[36m已卸载ShellClash相关文件有缘再会\033[0m"
echo -e "\033[33m请手动关闭当前窗口以重置环境变量\033[0m"