summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-01 19:28:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-01 19:28:56 +0000
commit8588ce31ebee0b992c1e39c64c4148be40767d11 (patch)
treea3ce7db62eed9e097912fd3081fbf4cf6022df24 /usr/local/www/firewall_nat_out_edit.php
parent3af33993764c132d6bfa783912a9fb97bf0af018 (diff)
downloadpfsense-8588ce31ebee0b992c1e39c64c4148be40767d11.zip
pfsense-8588ce31ebee0b992c1e39c64c4148be40767d11.tar.gz
Save NOSYNC value correctly
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_out_edit.php15
1 files changed, 8 insertions, 7 deletions
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): ?>
<option value="<?=$sn['subnet'];?>" <?php if ($sn['subnet'] == $pconfig['target']) echo "selected"; ?>><?=htmlspecialchars("{$sn['subnet']} ({$sn['descr']})");?></option>
<?php endforeach;
- endif; ?>
+ endif;
+?>
<option value=""<?php if($pconfig['target'] == "any") echo " selected"; ?>>any</option>
</select>
</td>
@@ -407,7 +408,7 @@ function sourcesel_change() {
<tr>
<td width="22%" valign="top" class="vncell">No XMLRPC Sync</td>
<td width="78%" class="vtable">
- <input name="nosync" type="checkbox" class="formfld" id="nosync"<?php if($pconfig['nosync']) echo " CHECKED"; ?>><br>
+ <input value="yes" name="nosync" type="checkbox" class="formfld" id="nosync"<?php if($pconfig['nosync']) echo " CHECKED"; ?>><br>
HINT: This prevents the rule from automatically syncing to other carp members.
</td>
</tr>
OpenPOWER on IntegriCloud