v1.1.1-test
~修复在导入包含“/”的自定义规则时报错的bug
This commit is contained in:
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
clash_v=1.3.5
|
||||
clashpre_v=2020.12.27
|
||||
versionsh=1.1.0
|
||||
GeoIP_v=20210210
|
||||
versionsh=1.1.1
|
||||
|
||||
@@ -274,6 +274,7 @@ EOF
|
||||
while read line;do
|
||||
[ -z "$(echo "$line" | grep '#')" ] && \
|
||||
[ -n "$(echo "$line" | grep '\-\ ')" ] && \
|
||||
line=$(echo "$line" | sed 's#/#\\/#') && \
|
||||
sed -i "/$line/d" $tmpdir/config.yaml && \
|
||||
sed -i "/^rules:/a\ $line" $tmpdir/config.yaml
|
||||
done < $clashdir/rules.yaml
|
||||
|
||||
Reference in New Issue
Block a user