]> git.gsnw.org Git - m0n0chwall.git/commitdiff
Fixed check for overlapping external port ranges when editing inbound NAT entries.
authormkasper <mkasper@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Sun, 8 Jan 2006 10:46:55 +0000 (10:46 +0000)
committermkasper <mkasper@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Sun, 8 Jan 2006 10:46:55 +0000 (10:46 +0000)
git-svn-id: https://svn.m0n0.ch/wall/trunk@31 e36fee2c-cc09-0410-a7cc-ebac5c6737de

webgui/firewall_nat_edit.php

index 059d8b9308fc2f9da7594a909b0861b8f9826a3f..01a136487c07eadfe49723b8ef99e7b93eaf0edd 100644 (file)
@@ -110,7 +110,7 @@ if ($_POST) {
                        continue;
                if ($natent['external-address'] != $_POST['extaddr'])
                        continue;
-               if (($natent['proto'] != $_POST['proto']) && ($natent['proto'] != "tcp/udp") && ($_POST['proto'] != "tcp/udp"))
+               if (($natent['protocol'] != $_POST['proto']) && ($natent['protocol'] != "tcp/udp") && ($_POST['proto'] != "tcp/udp"))
                        continue;
                
                list($begp,$endp) = explode("-", $natent['external-port']);