1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

REFACTOR: Add Joined and Segmented accessors to TXT, and other cleanups (#2628)

This commit is contained in:
Tom Limoncelli
2023-11-18 10:37:46 -05:00
committed by GitHub
parent 32fe2753d8
commit 8040e7bba2
10 changed files with 31 additions and 114 deletions

View File

@@ -3,6 +3,7 @@ package models
import (
"fmt"
"net"
"runtime/debug"
"strings"
"github.com/miekg/dns"
@@ -26,7 +27,7 @@ func (rc *RecordConfig) GetTargetField() string {
if debugWarnTxtField {
if rc.Type == "TXT" {
fmt.Printf("DEBUG: WARNING: GetTargetField called on TXT record is frequently wrong: %q\n", rc.target)
//debug.PrintStack()
debug.PrintStack()
}
}
return rc.target