Skip to content

Commit

Permalink
chore: why unifi whyyyyy
Browse files Browse the repository at this point in the history
  • Loading branch information
kashalls committed May 24, 2024
1 parent ed7812e commit cfad4ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnsprovider/dnsprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"io"
"net/http"
"net/http/cookiejar"
"strconv"

log "github.com/sirupsen/logrus"
"sigs.k8s.io/external-dns/endpoint"
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit cfad4ac

Please sign in to comment.