v1.9.1rc11

~修复fakeip过滤列表无法删除超过10行以上内容的问题
~修复导入部分包含json格式节点的yaml配置文件时无法识别节点的bug
This commit is contained in:
juewuy
2024-11-21 12:33:14 +08:00
parent 5abadbbf3d
commit 95369f6c98
7 changed files with 12 additions and 11 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -4,5 +4,5 @@ clash_v=v1.7.1
meta_v=v1.18.7
singboxp_v=1.10.0-alpha.29-067c81a7
singbox_v=1.9.0
versionsh=1.9.1rc10
versionsh=1.9.1rc11
GeoIP_v=20241116

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) Juewuy
version=1.9.1rc10
version=1.9.1rc11
setdir() {
dir_avail() {

View File

@@ -1482,15 +1482,16 @@ fake_ip_filter() {
case $input in
0) ;;
'') ;;
[0-99])
sed -i "${input}d" ${CRASHDIR}/configs/fake_ip_filter 2>/dev/null
echo -e "\033[32m移除成功\033[0m"
fake_ip_filter
;;
*)
echo -e "你输入的地址是:\033[32m$input\033[0m"
read -p "确认添加?(1/0) > " res
[ "$res" = 1 ] && echo $input >>${CRASHDIR}/configs/fake_ip_filter
if [ $input -ge 1 ] 2>/dev/null;then
sed -i "${input}d" ${CRASHDIR}/configs/fake_ip_filter 2>/dev/null
echo -e "\033[32m移除成功\033[0m"
else
echo -e "你输入的地址是:\033[32m$input\033[0m"
read -p "确认添加?(1/0) > " res
[ "$res" = 1 ] && echo $input >>${CRASHDIR}/configs/fake_ip_filter
fi
sleep 1
fake_ip_filter
;;
esac

View File

@@ -219,7 +219,7 @@ getlanip() { #获取局域网host地址
check_clash_config() { #检查clash配置文件
#检测节点或providers
sed -n "/^proxies:/,/^[a-z]/ { /^[a-z]/d; p; }" "$core_config_new" >"$TMPDIR"/proxies.yaml
if ! grep -q 'server:' "$TMPDIR"/proxies.yaml && ! grep -q 'proxy-providers:' "$core_config_new"; then
if ! grep -Eq 'server:|server":' "$TMPDIR"/proxies.yaml && ! grep -q 'proxy-providers:' "$core_config_new"; then
echo -----------------------------------------------
logger "获取到了配置文件【$core_config_new】,但似乎并不包含正确的节点信息!" 31
cat "$TMPDIR"/proxies.yaml