mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
CA-258321: Incorrect CFU user agent
Fixed user agent string for CFU. Signed-off-by: Ji Jiang <ji.jiang@citrix.com>
This commit is contained in:
parent
a5c895da0c
commit
5654b4eb89
@ -215,7 +215,7 @@ namespace XenAdmin.Core
|
|||||||
|
|
||||||
private static DownloadUpdatesXmlAction CreateDownloadUpdatesXmlAction(bool checkForXenCenter, bool checkForServerVersion, bool checkForPatches, string checkForUpdatesUrl = null)
|
private static DownloadUpdatesXmlAction CreateDownloadUpdatesXmlAction(bool checkForXenCenter, bool checkForServerVersion, bool checkForPatches, string checkForUpdatesUrl = null)
|
||||||
{
|
{
|
||||||
string userAgent = string.Format("[XenCenter]/{0}.{1} ({2}-bit)", Branding.XENCENTER_VERSION, Program.Version.Revision.ToString(), IntPtr.Size * 8);
|
string userAgent = string.Format("{0}/{1}.{2} ({3}-bit)", Branding.BRAND_CONSOLE, Branding.XENCENTER_VERSION, Program.Version.Revision.ToString(), IntPtr.Size * 8);
|
||||||
string userAgentId = GetUniqueIdHash();
|
string userAgentId = GetUniqueIdHash();
|
||||||
|
|
||||||
return new DownloadUpdatesXmlAction(checkForXenCenter, checkForServerVersion, checkForPatches, userAgent, userAgentId, checkForUpdatesUrl);
|
return new DownloadUpdatesXmlAction(checkForXenCenter, checkForServerVersion, checkForPatches, userAgent, userAgentId, checkForUpdatesUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user