From cfad4ac94e2cf51e68204a8a57df62fb9ea6a37b Mon Sep 17 00:00:00 2001 From: Jordan Jones Date: Thu, 23 May 2024 20:37:49 -0700 Subject: [PATCH] chore: why unifi whyyyyy --- dnsprovider/dnsprovider.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnsprovider/dnsprovider.go b/dnsprovider/dnsprovider.go index bcc6fd1..1fe60b0 100644 --- a/dnsprovider/dnsprovider.go +++ b/dnsprovider/dnsprovider.go @@ -9,6 +9,7 @@ import ( "io" "net/http" "net/http/cookiejar" + "strconv" log "github.com/sirupsen/logrus" "sigs.k8s.io/external-dns/endpoint" @@ -296,6 +297,9 @@ func (p *DNSProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error) var endpoints []*endpoint.Endpoint for _, record := range records { + if record.RecordType == "TXT" { + record.Value, _ = strconv.Unquote(record.Value) + } endpoints = append(endpoints, &endpoint.Endpoint{ DNSName: record.Key, Targets: []string{record.Value},