mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Unknown rtypes should not result in panic (#2775)
This commit is contained in:
@@ -137,6 +137,9 @@ func (z *ZoneGenData) generateZoneFileHelper(w io.Writer) error {
|
||||
|
||||
// type
|
||||
typeStr := rr.Type
|
||||
if rr.Type == "UNKNOWN" {
|
||||
typeStr = rr.UnknownTypeName
|
||||
}
|
||||
|
||||
// the remaining line
|
||||
target := rr.GetTargetCombinedFunc(txtutil.EncodeQuoted)
|
||||
|
Reference in New Issue
Block a user