summaryrefslogtreecommitdiffstats
path: root/package/firewall/files/lib/core_rule.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/firewall/files/lib/core_rule.sh')
-rw-r--r--package/firewall/files/lib/core_rule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firewall/files/lib/core_rule.sh b/package/firewall/files/lib/core_rule.sh
index a0de3ba8b..9443eef8c 100644
--- a/package/firewall/files/lib/core_rule.sh
+++ b/package/firewall/files/lib/core_rule.sh
@@ -53,7 +53,7 @@ fw_load_rule() {
fw_get_negation dest_spec '-d' "${rule_dest_ip:+$rule_dest_ip/$rule_dest_ip_prefixlen}"
local rule_pos
- eval 'rule_pos=$((++FW__RULE_COUNT_'$mode'_'$chain'))'
+ eval 'rule_pos=$((++FW__RULE_COUNT_'${mode#G}'_'$chain'))'
[ "$rule_proto" == "tcpudp" ] && rule_proto="tcp udp"
for rule_proto in $rule_proto; do