This commit is contained in:
Maxim Mikityanskiy 2024-04-18 18:08:50 +02:00 committed by GitHub
commit b8185b0f71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ mwan3_delete_iface_rules()
return
fi
for rule_id in $(ip rule list | awk '$1 % 1000 == '$id' && $1 > 1000 && $1 < 4000 {print substr($1,0,4)}'); do
for rule_id in $(ip rule list | awk 'BEGIN {FS=":"} $1 % 1000 == '$id' && $1 > 1000 && $1 < 4000 {print $1}'); do
$IP rule del pref $rule_id
done
}