v1.1.4-test

~修复部分情况下iptables报错的bug
~修复部分情况下保持面板配置时报错的bug
This commit is contained in:
juewuy
2021-02-25 21:16:36 +08:00
parent 36fcc884d6
commit b4fdcf8a27
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -1,4 +1,4 @@
GeoIP_v=20210219 GeoIP_v=20210219
clash_v=1.4.1 clash_v=1.4.1
clashpre_v=2021.02.21 clashpre_v=2021.02.21
versionsh=1.1.3 versionsh=1.1.4

View File

@@ -453,7 +453,7 @@ web_save(){
#使用get_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 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 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') 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 [ "$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 done < /tmp/clash_web_check_$USER