From a6713b327538115bd02c91d3b833f1e62cec6793 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sun, 5 Jun 2005 21:23:31 +0000 Subject: Fix nat rule dup so we really create a new rule instead of just editing the current one. Reported-By: Criggie --- usr/local/www/firewall_nat_edit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www/firewall_nat_edit.php') diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index f67d5e6..4536553 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -61,6 +61,9 @@ if (isset($id) && $a_nat[$id]) { $pconfig['interface'] = "wan"; } +if (isset($_GET['dup'])) + unset($id); + if ($_POST) { if ($_POST['beginport_cust'] && !$_POST['beginport']) -- cgit v1.1