timothymiller / cloudflare-ddns

🎉🌩️ Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP!
https://timknowsbest.com/free-dynamic-dns
GNU General Public License v3.0
3.01k stars 316 forks source link

deleteEntries function does not work correctly. #97

Closed notssh closed 2 years ago

notssh commented 2 years ago

Describe the bug Due to incorrect placement of the code block in the deleteEntries function it does not work correctly. It removes records only from the last domain zone in the list.

To Reproduce Steps to reproduce the behavior:

  1. Edit the config, also enable the purgeUnknownRecords option and add two or more Cloudflare configs.
  2. Run script.

Expected behavior Existing records from all zones must be deleted.

timothymiller commented 2 years ago

This issue has been resolved.