diff --git a/bin/clashfm.tar.gz b/bin/clashfm.tar.gz index b590aa2..6cb8af5 100644 Binary files a/bin/clashfm.tar.gz and b/bin/clashfm.tar.gz differ diff --git a/bin/version b/bin/version index 65f5ac0..8eb6ff6 100644 --- a/bin/version +++ b/bin/version @@ -1,4 +1,4 @@ GeoIP_v=20210219 clash_v=1.4.1 clashpre_v=2021.02.21 -versionsh=1.1.3 +versionsh=1.1.4 diff --git a/scripts/start.sh b/scripts/start.sh index 7f32aef..d28d9b7 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -453,7 +453,7 @@ web_save(){ #使用get_save获取面板节点设置 get_save http://localhost:${db_port}/proxies | awk -F "{" '{for(i=1;i<=NF;i++) print $i}' | grep -E '^"all".*"Selector"' > /tmp/clash_web_check_$USER while read line ;do - def=$(echo $line | awk -F "[\[,]" '{print $2}') + def=$(echo $line | awk -F "[[,]" '{print $2}') now=$(echo $line | grep -oE '"now".*",' | sed 's/"now"://g'| sed 's/,//g') [ "$def" != "$now" ] && echo $line | grep -oE '"name".*"now".*",' | sed 's/"name"://g' | sed 's/"now"://g'| sed 's/"//g' >> /tmp/clash_web_save_$USER done < /tmp/clash_web_check_$USER