mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-05 16:24:52 +00:00
ForwarderZone: code refactoring changes.
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user