Project

General

Profile

« Previous | Next » 

Revision 3474e299

Added by Ermal Luçi almost 10 years ago

Send the machine uuid with the headers requesting the version file

View differences:

etc/inc/pfsense-utils.inc
1770 1770
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
1771 1771
	curl_setopt($ch, CURLOPT_HEADER, false);
1772 1772
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
1773
	curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version")));
1773
	curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . rtrim(file_get_contents("/etc/version") . ' : ' . get_single_sysctl('kern.hostuuid')));
1774 1774

  
1775 1775
	if (!empty($config['system']['proxyurl'])) {
1776 1776
		curl_setopt($ch, CURLOPT_PROXY, $config['system']['proxyurl']);

Also available in: Unified diff