Skip to content

Commit b7301eb

Browse files
committed
allow txt if doesnt contain * in the middle
1 parent 0e65208 commit b7301eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gcoreprovider/gcore.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (p *DnsProvider) ApplyChanges(rootCtx context.Context, changes *plan.Change
174174
for _, c := range changes.Create {
175175
c := c
176176
zone := extractZone(c.DNSName)
177-
if zone == "" || c.RecordType == "TXT" {
177+
if zone == "" {
178178
continue
179179
}
180180
recordValues := make([]gdns.ResourceRecord, 0)
@@ -267,7 +267,8 @@ func (p *DnsProvider) AdjustEndpoints(endpoints []*endpoint.Endpoint) ([]*endpoi
267267
adjusted := make([]*endpoint.Endpoint, 0, len(endpoints))
268268
for _, e := range endpoints {
269269
e := e
270-
if e.RecordType != "TXT" {
270+
if e.RecordType != "TXT" || // normal A/AAAA
271+
strings.Index(e.DNSName, `*`) <= 0 { // as long as * not in the middle
271272
adjusted = append(adjusted, e)
272273
}
273274
}

0 commit comments

Comments
 (0)