From 8588ce31ebee0b992c1e39c64c4148be40767d11 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 1 Feb 2006 19:28:56 +0000 Subject: Save NOSYNC value correctly --- usr/local/www/firewall_nat_out_edit.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'usr/local/www/firewall_nat_out_edit.php') diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 228aa04..5e664f9 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -200,6 +200,11 @@ if ($_POST) { $natent['natport'] = $_POST['natport']; $natent['dstport'] = $_POST['dstport']; + if($_POST['nosync'] == "yes") + $natent['nosync'] = true; + else + unset($natent['nosync']); + if (isset($_POST['destination_not']) && $ext != "any") $natent['destination']['not'] = true; @@ -212,11 +217,6 @@ if ($_POST) { $a_out[] = $natent; } - if($_POST['nosync'] <> "") - $natent['nosync'] = true; - else - unset($natent['nosync']); - touch($d_natconfdirty_path); write_config(); @@ -378,7 +378,8 @@ function sourcesel_change() { foreach ($config['virtualip']['vip'] as $sn): ?> + endif; +?> @@ -407,7 +408,7 @@ function sourcesel_change() { No XMLRPC Sync - >
+ >
HINT: This prevents the rule from automatically syncing to other carp members. -- cgit v1.1