diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-06-11 03:42:40 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-06-11 03:42:40 +0200 |
commit | bfc15aca306d93c970fbc5ed9ebdbc0662015b57 (patch) | |
tree | 2706f05867ce6d829624a3d24baff4da28323d55 /usr/local/www/system_advanced_misc.php | |
parent | bab606ee0bb8655cb5099e12f139e9cc15d78da2 (diff) | |
download | pfsense-bfc15aca306d93c970fbc5ed9ebdbc0662015b57.zip pfsense-bfc15aca306d93c970fbc5ed9ebdbc0662015b57.tar.gz |
Make the host uuid opt-out
Diffstat (limited to 'usr/local/www/system_advanced_misc.php')
-rw-r--r-- | usr/local/www/system_advanced_misc.php | 18 |
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 3863eeb..9d11b86 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'])) { @@ -179,6 +180,12 @@ if ($_POST) { 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 { @@ -691,6 +698,17 @@ function tmpvar_checked(obj) { </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"> </td> <td width="78%"> <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> |