Fixed: Switch to dedicated fails when externalip is null

This commit is contained in:
robvde 2012-10-13 11:19:09 +04:00
parent 0d3589c2b6
commit cdb3883d9a

View file

@ -271,7 +271,10 @@ namespace WebsitePanel.EnterpriseServer
{
foreach (GlobalDnsRecord d in dnsRecords)
{
if (regIP.IsMatch(d.ExternalIP)) return BusinessErrorCodes.ERROR_GLOBALDNS_FOR_DEDICATEDIP;
if (!string.IsNullOrEmpty(d.ExternalIP))
{
if (regIP.IsMatch(d.ExternalIP)) return BusinessErrorCodes.ERROR_GLOBALDNS_FOR_DEDICATEDIP;
}
}
}
@ -653,7 +656,10 @@ namespace WebsitePanel.EnterpriseServer
foreach (GlobalDnsRecord d in dnsRecords)
{
if (regIP.IsMatch(d.ExternalIP)) return BusinessErrorCodes.ERROR_GLOBALDNS_FOR_DEDICATEDIP;
if (!string.IsNullOrEmpty(d.ExternalIP))
{
if (regIP.IsMatch(d.ExternalIP)) return BusinessErrorCodes.ERROR_GLOBALDNS_FOR_DEDICATEDIP;
}
}
// place log record