firewall: fix wrong variable names for protocol command line parameter - were missed...
authorDaniel Dickinson <crazycshore@gmail.com>
Thu, 7 Jul 2011 08:54:29 +0000 (08:54 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Thu, 7 Jul 2011 08:54:29 +0000 (08:54 +0000)
SVN-Revision: 27507

package/firewall/files/lib/core_redirect.sh

index a6245fad24b9cff4467dde6339a887db29062302..8d3d0b77164bd8df55c737f086ace31257fd6684 100644 (file)
@@ -97,7 +97,7 @@ fw_load_redirect() {
                        fw_get_negation sm '--mac-source' "$sm"
                        fw add $mode n $natchain $redirect_target + \
                                { $redirect_src_ip $redirect_dest_ip } { \
-                               $srcaddr $srcdaddr $redirect_proto \
+                               $srcaddr $srcdaddr $pr \
                                $srcports $srcdports \
                                ${sm:+-m mac $sm} \
                                $natopt $nataddr${natports:+:$natports} \
@@ -107,7 +107,7 @@ fw_load_redirect() {
                        fw add $mode f ${fwdchain:-forward} ACCEPT + \
                                { $redirect_src_ip $redirect_dest_ip } { \
                                $srcaddr ${destaddr:--m conntrack --ctstate DNAT} \
-                               $redirect_proto \
+                               $pr \
                                $srcports $destports \
                                $redirect_src_mac \
                                $redirect_extra \