r1284 + don't require remote port in a new NATv4 rule, if it is the same as the local...
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 19 Nov 2007 16:20:50 +0000 (16:20 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 19 Nov 2007 16:20:50 +0000 (16:20 +0000)
inc/ophandlers.php

index 5b3ced1d6cdd2658f6b24407d5876bb7a35323fa..03d549c302cfc2fde7eb3052d7e3504774d0c684 100644 (file)
@@ -17,6 +17,8 @@ function addPortForwarding ()
        $proto = $_REQUEST['proto'];
        $mode = $_REQUEST['mode'];
        $description = $_REQUEST['description'];
+       if (empty ($remoteport))
+               $remoteport = $localport;
 
        $retpage="${root}?page=${pageno}&tab=${tabno}&object_id=$object_id";