summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-06-11 03:46:48 +0200
committerErmal LUÇI <eri@pfsense.org>2015-06-11 03:46:48 +0200
commit2e7ea1074a3c75a7f56287af1f7b283721f1ceb5 (patch)
tree85077d8e80292424a633021285631a93b627e979 /usr
parent894d01b6f439cb0aa4d45b94da1c412cf83576e0 (diff)
downloadpfsense-2e7ea1074a3c75a7f56287af1f7b283721f1ceb5.zip
pfsense-2e7ea1074a3c75a7f56287af1f7b283721f1ceb5.tar.gz
Make the host uuid opt-out
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_advanced_misc.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index 6d927df..ab2c7f4 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -69,6 +69,7 @@ $pconfig['use_mfs_tmpvar'] = isset($config['system']['use_mfs_tmpvar']);
$pconfig['use_mfs_tmp_size'] = $config['system']['use_mfs_tmp_size'];
$pconfig['use_mfs_var_size'] = $config['system']['use_mfs_var_size'];
$pconfig['pkg_nochecksig'] = isset($config['system']['pkg_nochecksig']);
+$pconfig['host_uuid'] = !isset($config['system']['host_uuid']);
$pconfig['powerd_ac_mode'] = "hadp";
if (!empty($config['system']['powerd_ac_mode']))
@@ -163,6 +164,12 @@ if ($_POST) {
elseif (isset($config['system']['pkg_nochecksig']))
unset($config['system']['pkg_nochecksig']);
+ if ($_POST['host_uuid'] == "yes") {
+ unset($config['system']['host_uuid']);
+ } else {
+ $config['system']['host_uuid'] = true;
+ }
+
if($_POST['powerd_enable'] == "yes")
$config['system']['powerd_enable'] = true;
else
@@ -659,6 +666,17 @@ function tmpvar_checked(obj) {
<?=gettext("Enable this option to allow pfSense to install any package without checking its signature."); ?>
</td>
</tr>
+ <tr>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Installation Feedback"); ?></td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Host UUID"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="host_uuid" type="checkbox" id="host_uuid" value="yes" <?php if ($pconfig['host_uuid']) echo "checked=\"checked\""; ?> />
+ <strong><?=gettext("Do NOT send HOST UUID with user agent"); ?></strong><br />
+ <?=gettext("Enable this option to not send HOST UUID to pfSense as part of User-Agent header."); ?>
+ </td>
+ </tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
OpenPOWER on IntegriCloud