diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-06-10 20:12:25 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-06-10 20:12:25 +0200 |
commit | 3474e2998f2aa656e1a6bb3e51a4b52eb15d8856 (patch) | |
tree | 23caa18033f27e52a3318e468bf4c06257543f93 /etc/inc | |
parent | 7e3bdaa98ade9b72cd1d4179959b4bd951737c9a (diff) | |
download | pfsense-3474e2998f2aa656e1a6bb3e51a4b52eb15d8856.zip pfsense-3474e2998f2aa656e1a6bb3e51a4b52eb15d8856.tar.gz |
Send the machine uuid with the headers requesting the version file
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index d1f7305..b85ebfc 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1770,7 +1770,7 @@ function download_file($url, $destination, $verify_ssl = true, $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']); |