Skip to content

Commit

Permalink
skip all TXT
Browse files Browse the repository at this point in the history
  • Loading branch information
kokizzu committed Sep 5, 2024
1 parent 8971bce commit fbe7644
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcoreprovider/gcore.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (p *DnsProvider) ApplyChanges(rootCtx context.Context, changes *plan.Change
for _, c := range changes.Create {
c := c
zone := extractZone(c.DNSName)
if zone == "" || (c.RecordType == "TXT" && strings.Index(c.DNSName, `*`) > 0) {
if zone == "" || (c.RecordType == "TXT") { //{ && strings.Index(c.DNSName, `*`) > 0) {
continue
}
recordValues := make([]gdns.ResourceRecord, 0)
Expand Down Expand Up @@ -292,8 +292,8 @@ func (p *DnsProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) ([]*endpoi
adjusted := make([]*endpoint.Endpoint, 0, len(endpoints))
for _, e := range endpoints {
e := e
if e.RecordType != "TXT" || // normal A/AAAA
strings.Index(e.DNSName, `*`) <= 0 { // as long as * not in the middle
if e.RecordType != "TXT" { // || // normal A/AAAA
//strings.Index(e.DNSName, `*`) <= 0 { // as long as * not in the middle
adjusted = append(adjusted, e)
}
}
Expand Down

0 comments on commit fbe7644

Please sign in to comment.