mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 23:39:51 +01:00
Disallow CHC connection with Havana
Signed-off-by: Ji Jiang <ji.jiang@citrix.com>
This commit is contained in:
parent
ab614e4669
commit
7b63b58622
@ -973,16 +973,15 @@ namespace XenAdmin
|
||||
return;
|
||||
}
|
||||
|
||||
// Allow Citrix Hypervisor Center connect to Havana, Stockholm and cloud released CH only
|
||||
// Allow Citrix Hypervisor Center connect to Stockholm and cloud released versions only
|
||||
//
|
||||
if ((int)API_Version.LATEST >= (int)API_Version.API_2_16
|
||||
&& !Helpers.StockholmOrGreater(master) && !Helpers.HavanaOrGreater(master))
|
||||
if ((int)API_Version.LATEST >= (int)API_Version.API_2_16 && !Helpers.StockholmOrGreater(master))
|
||||
{
|
||||
connection.EndConnect();
|
||||
|
||||
Program.Invoke(Program.MainWindow, delegate
|
||||
{
|
||||
var msg = string.Format(Messages.GUI_NOT_COMPATIBLE, BrandManager.LegacyProduct, Helpers.GetName(master));
|
||||
var msg = string.Format(Messages.GUI_NOT_COMPATIBLE, Helpers.GetName(master));
|
||||
var url = InvisibleMessages.OUT_OF_DATE_WEBSITE;
|
||||
var title = string.Format(Messages.CONNECTION_REFUSED_TITLE, Helpers.GetName(master).Ellipsise(80));
|
||||
var error = $"{msg}\n{url}";
|
||||
|
2
XenModel/Messages.Designer.cs
generated
2
XenModel/Messages.Designer.cs
generated
@ -17918,7 +17918,7 @@ namespace XenAdmin {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to This version of [XenCenter] can only connect to {0} 7.1 CU2, [XenServer] 8.2, and greater versions. It cannot connect to {1}.
|
||||
/// Looks up a localized string similar to This version of [XenCenter] can only connect to [XenServer] 8.2 and greater versions. It cannot connect to {0}.
|
||||
///
|
||||
///You can get a compatible version of [XenCenter] from the following location:.
|
||||
/// </summary>
|
||||
|
@ -6251,7 +6251,7 @@ Note: Any custom color selections will remain unchanged</value>
|
||||
<value>UEFI &Secure Boot</value>
|
||||
</data>
|
||||
<data name="GUI_NOT_COMPATIBLE" xml:space="preserve">
|
||||
<value>This version of [XenCenter] can only connect to {0} 7.1 CU2, [XenServer] 8.2, and greater versions. It cannot connect to {1}.
|
||||
<value>This version of [XenCenter] can only connect to [XenServer] 8.2 and greater versions. It cannot connect to {0}.
|
||||
|
||||
You can get a compatible version of [XenCenter] from the following location:</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user