v1.4.8
~同步1.7.6版本.net内核 ~同步最新版本GeoIP数据库文件 ~在线生成配置文件时,默认添加udp支持 ~修复个人sub源无法使用的bug ~修复小闪存模式下面板无法正常更新的bug
This commit is contained in:
@@ -1043,6 +1043,8 @@ tools(){
|
||||
echo -----------------------------------------------
|
||||
echo -e "\033[30;47m欢迎使用其他工具菜单:\033[0m"
|
||||
echo -e "\033[33m本页工具可能无法兼容全部Linux设备,请酌情使用!\033[0m"
|
||||
echo -e "磁盘占用/所在目录:"
|
||||
du -sh $clashdir
|
||||
echo -----------------------------------------------
|
||||
echo -e " 1 ShellClash测试菜单"
|
||||
[ -f "/etc/firewall.user" ] && echo -e " 2 \033[32m配置\033[0m外网访问SSH"
|
||||
|
||||
@@ -187,7 +187,10 @@ getlink(){
|
||||
getlink2(){
|
||||
echo -----------------------------------------------
|
||||
echo -e "\033[33m仅限导入完整clash配置文件链接!!!\033[0m"
|
||||
echo -e "可使用\033[4;32mhttps://acl4ssr.netlify.app\033[0m在线生成配置文件"
|
||||
echo -----------------------------------------------
|
||||
echo -e "\033[31m有流媒体需求,请使用\033[32m6-1在线生成配置文件功能!!!\033[0m"
|
||||
echo -e "\033[31m如不了解机制,请使用\033[32m6-1在线生成配置文件功能!!!\033[0m"
|
||||
echo -e "\033[31m如遇任何问题,请使用\033[32m6-1在线生成配置文件功能!!!\033[0m"
|
||||
echo -----------------------------------------------
|
||||
echo -e "\033[33m0 返回上级菜单\033[0m"
|
||||
echo -----------------------------------------------
|
||||
@@ -978,8 +981,6 @@ testcommand(){
|
||||
echo -----------------------------------------------
|
||||
echo -e "\033[30;47m这里是测试命令菜单\033[0m"
|
||||
echo -e "\033[33m如遇问题尽量运行相应命令后截图发群\033[0m"
|
||||
echo -e "磁盘占用/所在目录:"
|
||||
du -sh $clashdir
|
||||
echo -----------------------------------------------
|
||||
echo " 1 查看clash运行时的报错信息"
|
||||
echo " 2 查看系统DNS端口(:53)占用 "
|
||||
|
||||
@@ -93,11 +93,11 @@ getyaml(){
|
||||
[ -z "$server_link" ] && server_link=1
|
||||
#前后端订阅服务器地址索引,可在此处添加!
|
||||
Server=`sed -n ""$server_link"p"<<EOF
|
||||
subcon.dlj.tf
|
||||
api.dler.io
|
||||
api.wcc.best
|
||||
sub.id9.cc
|
||||
sub.shellclash.ga
|
||||
https://subcon.dlj.tf
|
||||
https://api.dler.io
|
||||
https://api.wcc.best
|
||||
https://sub.id9.cc
|
||||
http://sub.shellclash.ga
|
||||
EOF`
|
||||
Config=`sed -n ""$rule_link"p"<<EOF
|
||||
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/config/ACL4SSR_Online_NoReject.ini
|
||||
@@ -122,7 +122,7 @@ EOF`
|
||||
#如果传来的是Url链接则合成Https链接,否则直接使用Https链接
|
||||
if [ -z "$Https" ];then
|
||||
#[ -n "$(echo $Url | grep -o 'https://dler')" ] && Server='api.dler.io'
|
||||
Https="https://$Server/sub?target=clash&insert=true&new_name=true&scv=true&exclude=$exclude&include=$include&url=$Url&config=$Config"
|
||||
Https="$Server/sub?target=clash&insert=true&new_name=true&scv=true&udp=true&exclude=$exclude&include=$include&url=$Url&config=$Config"
|
||||
markhttp=1
|
||||
fi
|
||||
#输出
|
||||
@@ -638,7 +638,8 @@ bfstart(){
|
||||
fi
|
||||
fi
|
||||
#检查dashboard文件
|
||||
if [ -f $clashdir/ui/index.html -a ! -f $bindir/ui/index.html ];then
|
||||
if [ -f $clashdir/ui/index.html ];then
|
||||
rm -rf $bindir/ui
|
||||
cp -rf $clashdir/ui $bindir
|
||||
fi
|
||||
#检查curl或wget支持
|
||||
|
||||
Reference in New Issue
Block a user