summaryrefslogtreecommitdiff
path: root/package/firewall/files
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
commit25a5fab34cf89baeed19155baad430ccf6c56709 (patch)
tree999d6e2dfdb10d31c72795dd1ae4923a03b43eae /package/firewall/files
parent02a47e971eb2c1376c613e6b35bd9c1ea0a9309d (diff)
downloadmtk-20170518-25a5fab34cf89baeed19155baad430ccf6c56709.zip
mtk-20170518-25a5fab34cf89baeed19155baad430ccf6c56709.tar.gz
mtk-20170518-25a5fab34cf89baeed19155baad430ccf6c56709.tar.bz2
firewall: fix bad number error in fw_redirect() (#6704)
SVN-Revision: 19765
Diffstat (limited to 'package/firewall/files')
-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 207dcd8..4921b91 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() {