Fix value check for TXT over 255 chars
This commit is contained in:
parent
b1881f90d4
commit
14dff85441
1 changed files with 4 additions and 2 deletions
|
|
@ -81,8 +81,10 @@ func GetRecords(zone *Zone) error {
|
|||
continue
|
||||
}
|
||||
|
||||
record.Value = strings.TrimPrefix(record.Value, "\"")
|
||||
record.Value = strings.TrimSuffix(record.Value, "\"")
|
||||
if !strings.EqualFold(record.Type, "TXT") || len(record.Value) <= 255 {
|
||||
record.Value = strings.TrimPrefix(record.Value, "\"")
|
||||
record.Value = strings.TrimSuffix(record.Value, "\"")
|
||||
}
|
||||
|
||||
recordsToKeep = append(recordsToKeep, record)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue