Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
orvice committed Aug 16, 2023
1 parent cf07a8c commit 4b39251
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dns/cloudflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ func (c *CloudFlare) UpdateIP(ctx context.Context, domain, ip string) error {
slog.Info("ip not change...")
continue
}

if r.Name != domain {
slog.Info("record name not match", "record_name", r.Name, "domain", domain)
continue
}

oldIP := r.Content
r.Content = ip
r, err = c.client.UpdateDNSRecord(ctx, cloudflare.ResourceIdentifier(zid), cloudflare.UpdateDNSRecordParams{
Expand Down

0 comments on commit 4b39251

Please sign in to comment.