We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8dfdd0 commit c574dccCopy full SHA for c574dcc
models.go
@@ -166,9 +166,9 @@ func (r cfDNSRecord) libdnsRecord(zone string) (libdns.Record, error) {
166
Target: r.Content,
167
}, nil
168
case "SRV":
169
- parts := strings.SplitN(name, ".", 3)
+ parts := strings.SplitN(r.Name, ".", 3)
170
if len(parts) < 3 {
171
- return libdns.SRV{}, fmt.Errorf("name %v does not contain enough fields; expected format: '_service._proto.name'", name)
+ return libdns.SRV{}, fmt.Errorf("name %v does not contain enough fields; expected format: '_service._proto.name'", r.Name)
172
}
173
return libdns.SRV{
174
Service: strings.TrimPrefix(parts[0], "_"),
0 commit comments