aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-02-20 03:39:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-02-20 03:39:55 +0000
commitfad5d4222bdca3b33875786510c25b9adcffc13e (patch)
tree7edf657d4c561a16cc1840d497e595c03b38b81c /package/firewall
parent4568cbf8d5f124fa1aaec3ee388570deedf89287 (diff)
downloadupstream-fad5d4222bdca3b33875786510c25b9adcffc13e.tar.gz
upstream-fad5d4222bdca3b33875786510c25b9adcffc13e.tar.bz2
upstream-fad5d4222bdca3b33875786510c25b9adcffc13e.zip
[package] firewall: fix bad number error in fw_redirect() (#6704)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19765 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall')
-rwxr-xr-xpackage/firewall/files/uci_firewall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh
index 207dcd8df4..4921b91bae 100755
--- a/package/firewall/files/uci_firewall.sh
+++ b/package/firewall/files/uci_firewall.sh
@@ -355,18 +355,18 @@ fw_redirect() {
src_port_first=${src_port%-*}
src_port_last=${src_port#*-}
- [ "$src_port_first" -ne "$src_port_last" ] && { \
+ [ "$src_port_first" != "$src_port_last" ] && { \
src_port="$src_port_first:$src_port_last"; }
src_dport_first=${src_dport%-*}
src_dport_last=${src_dport#*-}
- [ "$src_dport_first" -ne "$src_dport_last" ] && { \
+ [ "$src_dport_first" != "$src_dport_last" ] && { \
src_dport="$src_dport_first:$src_dport_last"; }
dest_port2=${dest_port:-$src_dport}
dest_port_first=${dest_port2%-*}
dest_port_last=${dest_port2#*-}
- [ "$dest_port_first" -ne "$dest_port_last" ] && { \
+ [ "$dest_port_first" != "$dest_port_last" ] && { \
dest_port2="$dest_port_first:$dest_port_last"; }
add_rule() {