v1.2.6-test

~增加Linux系统本机代理增强模式
This commit is contained in:
juewuy
2021-05-15 16:25:18 +08:00
parent 674c7872f3
commit 64c50d3305
7 changed files with 66 additions and 36 deletions

View File

@@ -37,7 +37,7 @@ webget(){
url="https://cdn.jsdelivr.net/gh/juewuy/ShellClash"
if [ "$test" -gt 0 ];then
url="https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master"
[ "$test" -eq 2 ] && url="http://192.168.31.31:8080/ShellClash"
[ "$test" -eq 2 ] && url="http://192.168.0.4:8080/ShellClash"
[ "$test" -eq 3 ] && url="http://192.168.123.90:8080/clash-for-Miwifi"
else
webget /tmp/clashrelease $url@master/bin/release_version echoon rediroff 2>/tmp/clashrelease
@@ -78,6 +78,7 @@ gettar(){
mv $clashdir/clash.service $sysdir/clash.service
sed -i "s%/etc/clash%$clashdir%g" $sysdir/clash.service
systemctl daemon-reload
useradd shellclash
else
#设为保守模式启动
sed -i '/start_old=*/'d $clashdir/mark