~移除错误的fakeip过滤地址

~修复导入包含&符号的订阅链接时,生成配置文件出错的bug
This commit is contained in:
juewuy
2025-12-19 22:56:34 +08:00
parent a07e5f6e15
commit 6c05b79ff6
3 changed files with 2 additions and 3 deletions

View File

@@ -114,8 +114,6 @@ swdist.apple.com
#Google #Google
lens.l.google.com lens.l.google.com
na.b.g-tun.com na.b.g-tun.com
#Netflix
+.nflxvideo.net
#FinalFantasy XIV Worldwide Server & CN Server #FinalFantasy XIV Worldwide Server & CN Server
*.square-enix.com *.square-enix.com
*.finalfantasyxiv.com *.finalfantasyxiv.com

View File

@@ -391,6 +391,7 @@ get_core_config() { #下载内核配置文件
if [ -z "$Https" ]; then if [ -z "$Https" ]; then
#Urlencord转码处理保留字符 #Urlencord转码处理保留字符
if ckcmd hexdump;then if ckcmd hexdump;then
Url=$(echo $Url | sed 's/%26/\&/g') #处理分隔符
urlencodeUrl="exclude=$(urlencode "$exclude")&include=$(urlencode "$include")&url=$(urlencode "$Url")&config=$(urlencode "$Config")" urlencodeUrl="exclude=$(urlencode "$exclude")&include=$(urlencode "$include")&url=$(urlencode "$Url")&config=$(urlencode "$Config")"
else else
urlencodeUrl="exclude=$exclude&include=$include&url=$Url&config=$Config" urlencodeUrl="exclude=$exclude&include=$include&url=$Url&config=$Config"

View File

@@ -934,7 +934,7 @@ gen_core_config_link(){ #在线生成工具
echo -e " 0 \033[31m撤销输入并返回上级菜单\033[0m" echo -e " 0 \033[31m撤销输入并返回上级菜单\033[0m"
echo "-----------------------------------------------" echo "-----------------------------------------------"
read -p "请直接输入第${i}个链接或对应数字选项 > " link read -p "请直接输入第${i}个链接或对应数字选项 > " link
link=$(echo $link | sed 's/\&/\\&/g') #处理分隔符 link=$(echo $link | sed 's/\&/%26/g') #处理分隔符
test=$(echo $link | grep "://") test=$(echo $link | grep "://")
link=`echo ${link/\#*/''}` #删除链接附带的注释内容 link=`echo ${link/\#*/''}` #删除链接附带的注释内容
link=`echo ${link/\ \(*\)/''}` #删除恶心的超链接内容 link=`echo ${link/\ \(*\)/''}` #删除恶心的超链接内容