mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
TRANSIP: Fix quoting of TXT records (#1918)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@ -236,8 +236,6 @@ func removeOtherNS(dc *models.DomainConfig) {
|
||||
|
||||
func getTargetRecordContent(rc *models.RecordConfig) string {
|
||||
switch rtype := rc.Type; rtype {
|
||||
case "CAA":
|
||||
return rc.GetTargetCombined()
|
||||
case "SSHFP":
|
||||
return fmt.Sprintf("%d %d %s", rc.SshfpAlgorithm, rc.SshfpFingerprint, rc.GetTargetField())
|
||||
case "DS":
|
||||
@ -245,6 +243,6 @@ func getTargetRecordContent(rc *models.RecordConfig) string {
|
||||
case "SRV":
|
||||
return fmt.Sprintf("%d %d %s", rc.SrvWeight, rc.SrvPort, rc.GetTargetField())
|
||||
default:
|
||||
return rc.GetTargetCombined()
|
||||
return models.StripQuotes(rc.GetTargetCombined())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user