ForwarderZone: code refactoring changes.

This commit is contained in:
Shreyas Zare
2023-01-14 14:33:28 +05:30
parent d1b2e1c192
commit d2fc9cab6e

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2022 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2023 Shreyas Zare (shreyas@technitium.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -44,7 +44,7 @@ namespace DnsServerCore.Dns.Zones
DnsResourceRecord fwdRecord = new DnsResourceRecord(name, DnsResourceRecordType.FWD, DnsClass.IN, 0, new DnsForwarderRecordData(forwarderProtocol, forwarder, dnssecValidation, proxyType, proxyAddress, proxyPort, proxyUsername, proxyPassword));
if (!string.IsNullOrEmpty(fwdRecordComments))
fwdRecord.SetComments(fwdRecordComments);
fwdRecord.GetAuthRecordInfo().Comments = fwdRecordComments;
_entries[DnsResourceRecordType.FWD] = new DnsResourceRecord[] { fwdRecord };
}