r1922 + another fix for NATv4
[racktables] / inc / ophandlers.php
index bc1c29e..a11b4ac 100644 (file)
@@ -94,7 +94,7 @@ function addPortForwarding ()
        $object_id = $_REQUEST['object_id'];
        $remoteport = $_REQUEST['remoteport'];
        if (empty ($remoteport))
-               $remoteport = $localport;
+               $remoteport = $_REQUEST['localport'];
 
        $retpage="${root}?page=${pageno}&tab=${tabno}&object_id=$object_id";