[ip] variable replacer fixed
This commit is contained in:
parent
cbc0487221
commit
ee6923aee8
1 changed files with 3 additions and 0 deletions
|
@ -281,6 +281,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
foreach (GlobalDnsRecord record in records)
|
foreach (GlobalDnsRecord record in records)
|
||||||
{
|
{
|
||||||
|
if (String.IsNullOrEmpty(serviceIP) && String.IsNullOrEmpty(record.ExternalIP))
|
||||||
|
continue;
|
||||||
|
|
||||||
DnsRecord rr = new DnsRecord();
|
DnsRecord rr = new DnsRecord();
|
||||||
rr.RecordType = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), record.RecordType, true);
|
rr.RecordType = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), record.RecordType, true);
|
||||||
rr.RecordName = Utils.ReplaceStringVariable(record.RecordName, "host_name", hostName, true);
|
rr.RecordName = Utils.ReplaceStringVariable(record.RecordName, "host_name", hostName, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue