mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Send the machine uuid with the headers requesting the version file
This commit is contained in:
parent
fb36bccf12
commit
9c189bee28
@ -1686,7 +1686,7 @@ function download_file($url, $destination, $verify_ssl = false, $connect_timeout
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
|
||||
curl_setopt($ch, CURLOPT_HEADER, false);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version") . ' : ' . get_single_sysctl('kern.hostuuid')));
|
||||
|
||||
if (!empty($config['system']['proxyurl'])) {
|
||||
curl_setopt($ch, CURLOPT_PROXY, $config['system']['proxyurl']);
|
||||
@ -1728,7 +1728,7 @@ function download_file_with_progress_bar($url_file, $destination_file, $readbody
|
||||
curl_setopt($ch, CURLOPT_NOPROGRESS, '1');
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version") . ' : ' . get_single_sysctl('kern.hostuuid')));
|
||||
|
||||
if (!empty($config['system']['proxyurl'])) {
|
||||
curl_setopt($ch, CURLOPT_PROXY, $config['system']['proxyurl']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user