mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 07:51:45 +00:00
~将clash基础内核、singbox内核移动到自定义内核功能中
~用singboxr内核替换了singboxp内核的原有功能 ~自定义内核功能移除了部分不支持的内核 ~优化singbox相关内核判断语句 ~更新感谢列表
This commit is contained in:
@@ -180,7 +180,7 @@ startover() {
|
||||
return 0
|
||||
}
|
||||
start_core() {
|
||||
if [ "$crashcore" = singbox -o "$crashcore" = singboxp ]; then
|
||||
if echo "$crashcore" | grep -q 'singbox'; then
|
||||
core_config=${CRASHDIR}/jsons/config.json
|
||||
else
|
||||
core_config=${CRASHDIR}/yamls/config.yaml
|
||||
@@ -188,7 +188,7 @@ start_core() {
|
||||
echo -----------------------------------------------
|
||||
if [ ! -s $core_config -a -s $CRASHDIR/configs/providers.cfg ]; then
|
||||
echo -e "\033[33m没有找到${crashcore}配置文件,尝试生成providers配置文件!\033[0m"
|
||||
[ "$crashcore" = singboxp ] && coretype=singbox
|
||||
[ "$crashcore" = singboxr ] && coretype=singbox
|
||||
[ "$crashcore" = meta -o "$crashcore" = clashpre ] && coretype=clash
|
||||
source ${CRASHDIR}/webget.sh && gen_${coretype}_providers
|
||||
elif [ -s $core_config -o -n "$Url" -o -n "$Https" ]; then
|
||||
@@ -1483,7 +1483,7 @@ set_dns_mod() { #DNS模式设置
|
||||
echo -e " 不支持CN-IP绕过功能"
|
||||
echo -e " 2 redir_host模式:\033[32m兼容性更好\033[0m"
|
||||
echo -e " 需搭配加密DNS使用"
|
||||
if [ "$crashcore" = singbox ] || [ "$crashcore" = singboxp ] || [ "$crashcore" = meta ]; then
|
||||
if echo "$crashcore" | grep -q 'singbox' || [ "$crashcore" = meta ]; then
|
||||
echo -e " 3 mix混合模式: \033[32m内部realip外部fakeip\033[0m"
|
||||
echo -e " 依赖geosite.dat/geosite-cn.srs数据库"
|
||||
fi
|
||||
@@ -1505,7 +1505,7 @@ set_dns_mod() { #DNS模式设置
|
||||
echo -e "\033[36m已设为 $dns_mod 模式!!\033[0m"
|
||||
;;
|
||||
3)
|
||||
if [ "$crashcore" = singbox ] || [ "$crashcore" = singboxp ] || [ "$crashcore" = meta ]; then
|
||||
if echo "$crashcore" | grep -q 'singbox' || [ "$crashcore" = meta ]; then
|
||||
dns_mod=mix
|
||||
setconfig dns_mod $dns_mod
|
||||
echo -----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user