修复
This commit is contained in:
@@ -2873,7 +2873,7 @@ remove_rule_from_config() {
|
||||
local rule_found=false
|
||||
|
||||
while IFS= read -r line || [[ -n "$line" ]]; do
|
||||
if [[ "$line" =~ ^[[:space:]]*-[[:space:]]*name:[[:space:]]*${rule_name}[[:space:]]*$ ]]; then
|
||||
if [[ "$line" =~ ^[[:space:]]*-[[:space:]]*name:[[:space:]]*[\"']*${rule_name}[\"']*[[:space:]]*$ ]]; then
|
||||
in_target_rule=true
|
||||
rule_found=true
|
||||
continue
|
||||
@@ -3331,4 +3331,4 @@ prompt_config_sync() {
|
||||
# 如果脚本被直接执行
|
||||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||
manage_outbound
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user