This commit is contained in:
cui 2026-07-17 21:53:00 -07:00 committed by GitHub
commit 67f541ac44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,7 +121,7 @@ func (c *cloudflareClient) uploadRecords(name string, records map[string]string)
}
existing := make(map[string]cloudflare.DNSRecord)
for _, entry := range entries {
if !strings.HasSuffix(entry.Name, name) {
if !isSubdomain(entry.Name, name) {
continue
}
existing[strings.ToLower(entry.Name)] = entry