v1.3.12-test
~绕过内核功能ipset模块检测修复 ~优化对低版本wget命令的支持 ~暂时屏蔽对dler.io的特殊处理 ~精简部分代码 ~修复部分情况无法正常检查更新的bug ~修复本机代理增强模式部分bug
This commit is contained in:
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
clash_v=1.6.0
|
clash_v=1.6.0
|
||||||
clashpre_v=2021.05.08
|
clashpre_v=2021.05.08
|
||||||
GeoIP_v=20210611
|
GeoIP_v=20210611
|
||||||
versionsh=1.3.11
|
versionsh=1.3.12
|
||||||
|
|||||||
@@ -507,10 +507,7 @@ localproxy(){
|
|||||||
setconfig local_type $local_type
|
setconfig local_type $local_type
|
||||||
localproxy
|
localproxy
|
||||||
elif [ "$num" = 3 ]; then
|
elif [ "$num" = 3 ]; then
|
||||||
[ -w /etc/systemd/system/clash.service ] && servdir=/etc/systemd/system/clash.service
|
if [ -w /etc/systemd/system/clash.service -o -w /usr/lib/systemd/system/clash.service -o -x /bin/su ];then
|
||||||
[ -w /usr/lib/systemd/system/clash.service ] && servdir=/usr/lib/systemd/system/clash.service
|
|
||||||
[ -x /bin/su ] && servdir=1
|
|
||||||
if [ -n "$servdir" ];then
|
|
||||||
local_type="iptables增强模式"
|
local_type="iptables增强模式"
|
||||||
setconfig local_type $local_type
|
setconfig local_type $local_type
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -669,6 +669,8 @@ bfstart(){
|
|||||||
sed -Ei s/7890:7890/0:7890/g /etc/passwd
|
sed -Ei s/7890:7890/0:7890/g /etc/passwd
|
||||||
fi
|
fi
|
||||||
if [ "$start_old" != "已开启" ];then
|
if [ "$start_old" != "已开启" ];then
|
||||||
|
[ -w /etc/systemd/system/clash.service ] && servdir=/etc/systemd/system/clash.service
|
||||||
|
[ -w /usr/lib/systemd/system/clash.service ] && servdir=/usr/lib/systemd/system/clash.service
|
||||||
setconfig ExecStart "/bin/su\ shellclash\ -c\ \"$bindir/clash\ -d\ $bindir\"" $servdir
|
setconfig ExecStart "/bin/su\ shellclash\ -c\ \"$bindir/clash\ -d\ $bindir\"" $servdir
|
||||||
systemctl daemon-reload >/dev/null
|
systemctl daemon-reload >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user