Fixed: Switch to dedicated fails when externalip is null
This commit is contained in:
parent
0d3589c2b6
commit
cdb3883d9a
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue