From: cyrus Date: Mon, 15 Sep 2008 18:57:39 +0000 (+0000) Subject: Fixed a typo in firewall scripts, closes #4000 X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/e81a77ae5d564bb615ecd7aa4a0ad6347a69a71e?ds=inline Fixed a typo in firewall scripts, closes #4000 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12613 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh index 0ce878b7f..85af805b7 100755 --- a/package/firewall/files/uci_firewall.sh +++ b/package/firewall/files/uci_firewall.sh @@ -251,7 +251,7 @@ fw_redirect() { [ "$src_dport_first" -ne "$src_dport_last" ] && { \ src_dport="$src_dport_first:$src_dport_last"; } - destport2=destport + dest_port2=$dest_port dest_port_first=${dest_port2%-*} dest_port_last=${dest_port2#*-} [ "$dest_port_first" -ne "$dest_port_last" ] && { \