qdm12 / ddns-updater

Container to update DNS records periodically with WebUI for many DNS providers
https://hub.docker.com/r/qmcgaw/ddns-updater/
MIT License
1.46k stars 146 forks source link

Bug: Previous IPs NOT in reverse chronological order #730

Closed petanck closed 2 weeks ago

petanck commented 1 month ago

The list of previous IP addresses starts with the oldest, then the next oldest...whereas the expectation is that it is in reverse chronological order so that you can see the previous IP address (before the last change) and the one before that.

  1. Is this urgent: No
  2. DNS provider(s) you use: Cloudflare
  3. Program version: v2.6.0 (docker)
  4. What are you using to run the container: docker-compose
  5. Extra information (optional) Screenshot 2024-05-25 132701

Here's a redacted copy of my updates.json showing that the previous IP address showing in the webpage are the oldest (from August 2023) not the newest:

updates.json

qdm12 commented 2 weeks ago

Indeed, thanks for reporting this! It was silly me who wrongly coded the reversion of IP order, my bad!