summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_misc.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-23 10:40:16 -0200
committerRenato Botelho <renato@netgate.com>2015-11-23 10:40:16 -0200
commit0c310d6730a0a78dcfb4dc4c06199fae1112a637 (patch)
treeb2c97f530147fbd091a52cf91d92482aefb35a5b /src/usr/local/www/system_advanced_misc.php
parentb959a4955ea90f865ff54cce2dd8fea29943a13c (diff)
downloadpfsense-0c310d6730a0a78dcfb4dc4c06199fae1112a637.zip
pfsense-0c310d6730a0a78dcfb4dc4c06199fae1112a637.tar.gz
Re-add host_uuid user-agent option lost during bootstrap import. While here, change its name to be more clear what it does
Diffstat (limited to 'src/usr/local/www/system_advanced_misc.php')
-rw-r--r--src/usr/local/www/system_advanced_misc.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/usr/local/www/system_advanced_misc.php b/src/usr/local/www/system_advanced_misc.php
index 7e78c7f..31c80bd 100644
--- a/src/usr/local/www/system_advanced_misc.php
+++ b/src/usr/local/www/system_advanced_misc.php
@@ -92,7 +92,7 @@ $pconfig['apinger_debug'] = isset($config['system']['apinger_debug']);
$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['host_uuid'] = !isset($config['system']['host_uuid']);
+$pconfig['do_not_send_host_uuid'] = isset($config['system']['do_not_send_host_uuid']);
$pconfig['powerd_ac_mode'] = "hadp";
if (!empty($config['system']['powerd_ac_mode'])) {
@@ -215,10 +215,10 @@ if ($_POST) {
unset($config['system']['pkg_nochecksig']);
}
- if ($_POST['host_uuid'] == "yes") {
- unset($config['system']['host_uuid']);
+ if ($_POST['do_not_send_host_uuid'] == "yes") {
+ $config['system']['do_not_send_host_uuid'] = true;
} else {
- $config['system']['host_uuid'] = true;
+ unset($config['system']['do_not_send_host_uuid']);
}
if ($_POST['powerd_enable'] == "yes") {
@@ -599,6 +599,17 @@ if ($g['platform'] == "pfSense") {
$form->add($section);
}
+$section = new Form_Section('Installation Feedback');
+
+$section->addInput(new Form_Checkbox(
+ 'do_not_send_host_uuid',
+ 'Host UUID',
+ 'Do NOT send HOST UUID with user agent',
+ $pconfig['do_not_send_host_uuid']
+))->setHelp('Enable this option to not send HOST UUID to pfSense as part of User-Agent header.');
+
+$form->add($section);
+
print $form;
include("foot.inc");
OpenPOWER on IntegriCloud