v1.9.2beta2
~因境外加密DNS已无法访问,将新手引导自动设置的fallback_DNS设置为国内加密DNS地址,担心泄露的用户请勿使用redir_host模式或配置第三方DNS服务 ~修复导入/tmp目录下内核或配置文件时,无法识别可执行文件的bug
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -4,5 +4,5 @@ clash_v=v1.7.1
|
|||||||
meta_v=v1.19.3
|
meta_v=v1.19.3
|
||||||
singboxp_v=1.10.0-alpha.29-067c81a7
|
singboxp_v=1.10.0-alpha.29-067c81a7
|
||||||
singbox_v=1.10.7
|
singbox_v=1.10.7
|
||||||
versionsh=1.9.2beta1
|
versionsh=1.9.2beta2
|
||||||
GeoIP_v=20250314
|
GeoIP_v=20250314
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
version=1.9.2beta1
|
version=1.9.2beta2
|
||||||
|
|
||||||
setdir() {
|
setdir() {
|
||||||
dir_avail() {
|
dir_avail() {
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ ckstatus() {
|
|||||||
#检查执行权限
|
#检查执行权限
|
||||||
[ ! -x ${CRASHDIR}/start.sh ] && chmod +x ${CRASHDIR}/start.sh
|
[ ! -x ${CRASHDIR}/start.sh ] && chmod +x ${CRASHDIR}/start.sh
|
||||||
#检查/tmp内核文件
|
#检查/tmp内核文件
|
||||||
for file in $(ls -F /tmp | grep -v [/$] | grep -v ' ' | grep -Ev ".*(gz|zip|7z|tar)$" | grep -iE 'CrashCore|^clash$|^clash-linux.*|^mihomo.*|^sing.*box|^clash.meta.*'); do
|
for file in $(ls /tmp | grep -v [/$] | grep -v ' ' | grep -Ev ".*(gz|zip|7z|tar)$" | grep -iE 'CrashCore|^clash$|^clash-linux.*|^mihomo.*|^sing.*box|^clash.meta.*'); do
|
||||||
file=/tmp/$file
|
file=/tmp/$file
|
||||||
chmod +x $file
|
chmod +x $file
|
||||||
echo -e "发现可用的内核文件: \033[36m$file\033[0m "
|
echo -e "发现可用的内核文件: \033[36m$file\033[0m "
|
||||||
@@ -143,7 +143,7 @@ ckstatus() {
|
|||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
done
|
done
|
||||||
#检查/tmp配置文件
|
#检查/tmp配置文件
|
||||||
for file in $(ls -F /tmp | grep -v [/$] | grep -v ' ' | grep -iE '.yaml$|.yml$|config.json$'); do
|
for file in $(ls /tmp | grep -v [/$] | grep -v ' ' | grep -iE '.yaml$|.yml$|config.json$'); do
|
||||||
file=/tmp/$file
|
file=/tmp/$file
|
||||||
echo -e "发现内核配置文件: \033[36m$file\033[0m "
|
echo -e "发现内核配置文件: \033[36m$file\033[0m "
|
||||||
read -p "是否加载为$crashcore的配置文件?(1/0) > " res
|
read -p "是否加载为$crashcore的配置文件?(1/0) > " res
|
||||||
|
|||||||
@@ -2316,7 +2316,8 @@ userguide(){
|
|||||||
#设置加密DNS
|
#设置加密DNS
|
||||||
if [ -s $openssldir/certs/ca-certificates.crt ];then
|
if [ -s $openssldir/certs/ca-certificates.crt ];then
|
||||||
dns_nameserver='https://223.5.5.5/dns-query, https://doh.pub/dns-query, tls://dns.rubyfish.cn:853'
|
dns_nameserver='https://223.5.5.5/dns-query, https://doh.pub/dns-query, tls://dns.rubyfish.cn:853'
|
||||||
dns_fallback='https://1.0.0.1/dns-query, https://8.8.4.4/dns-query, https://doh.opendns.com/dns-query'
|
#dns_fallback='https://1.0.0.1/dns-query, https://8.8.4.4/dns-query, https://doh.opendns.com/dns-query'
|
||||||
|
dns_fallback=$dns_nameserver
|
||||||
setconfig dns_nameserver \'"$dns_nameserver"\'
|
setconfig dns_nameserver \'"$dns_nameserver"\'
|
||||||
setconfig dns_fallback \'"$dns_fallback"\'
|
setconfig dns_fallback \'"$dns_fallback"\'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user