v1.5.0-预览版
~同步最新1.9.0官方内核及premium内核 ~meta核切换至dev分支版本并移除了geosite的自动下载功能 ~同步最新Geoip及CNIP数据库文件 ~同步最新Dashboard面板文件 ~DNS解析默认不再提供IPV6结果,需手动开启 ~现在将从配置文件中获取运行模式而不是固定的Rule模式 ~在线生成配置文件功能添加对vless协议的支持 ~增加了对vless协议的检测机制,优化使用体验 ~修复使用环境变量设置本机代理不生效的bug ~修复meta内核版本号显示不正常的bug ~修复部分情况下下载出错后不会正常重试的bug
This commit is contained in:
@@ -135,7 +135,7 @@ EOF`
|
||||
yaml=$clashdir/config.yaml
|
||||
yamlnew=/tmp/clash_config_$USER.yaml
|
||||
rm -rf $yamlnew
|
||||
$0 webget $yamlnew $Https 0 0 0 1
|
||||
$0 webget $yamlnew $Https
|
||||
if [ "$?" = "1" ];then
|
||||
if [ -z "$markhttp" ];then
|
||||
echo -----------------------------------------------
|
||||
@@ -190,8 +190,16 @@ EOF`
|
||||
echo -----------------------------------------------
|
||||
exit 1
|
||||
fi
|
||||
#检测vless协议
|
||||
if [ -n "$(cat $yamlnew | grep -E 'vless')" ] && [ "$clashcore" = "clash" -o "$clashcore" = "clashpre" ];then
|
||||
echo -----------------------------------------------
|
||||
logger "检测到vless协议!将改为使用clash.meta核心启动!" 33
|
||||
rm -rf $bindir/clash
|
||||
setconfig clashcore clash.meta
|
||||
echo -----------------------------------------------
|
||||
fi
|
||||
#检测是否存在高级版规则
|
||||
if [ "$clashcore" = "clash" -a -n "$(cat $yamlnew | grep -E '^script:|proxy-providers|rule-providers|vless')" ];then
|
||||
if [ "$clashcore" = "clash" -a -n "$(cat $yamlnew | grep -E '^script:|proxy-providers|rule-providers')" ];then
|
||||
echo -----------------------------------------------
|
||||
logger "检测到高级版核心专属规则!将改为使用clash.net核心启动!" 33
|
||||
rm -rf $bindir/clash
|
||||
@@ -832,7 +840,7 @@ webget)
|
||||
[ "$6" = "skipceroff" ] && certificate='' || certificate='-k'
|
||||
#[ -n "$7" ] && agent='-A "clash"'
|
||||
result=$(curl $agent -w %{http_code} --connect-timeout 3 $progress $redirect $certificate -o "$2" "$3")
|
||||
[ "$?" != "0" ] && export all_proxy="" && result=$(curl $agent -w %{http_code} --connect-timeout 3 $progress $redirect $certificate -o "$2" "$3")
|
||||
[ "$result" != "200" ] && export all_proxy="" && result=$(curl $agent -w %{http_code} --connect-timeout 3 $progress $redirect $certificate -o "$2" "$3")
|
||||
else
|
||||
if wget --version > /dev/null 2>&1;then
|
||||
[ "$4" = "echooff" ] && progress='-q' || progress='-q --show-progress'
|
||||
|
||||
Reference in New Issue
Block a user