packages/net/ddns-scripts/files
Andy Chiang 2db9615cac ddns-scripts: fix ULA/deprecated IPv6 in interface mode, update to 2.8.7
When the IP source is "interface", the first global-scope address
reported by "ip addr" was used. This could pick a ULA address, or
an address whose preferred lifetime has expired (e.g. an old prefix
left over after the ISP delegated a new one), so the wrong address
was sent to the DDNS provider.

Filter the lookup as follows:

- Use "-deprecated" for IPv6 to skip addresses that are no longer
  preferred.
- Skip addresses in f000::/4 (including ULA, which may be listed
  first and must be excluded to ensure a GUA is selected), unless
  "non-public IPs" is enabled. The IP verification rejects f000::/4
  later anyway, so picking one made the update fail.

Removed addresses (by -deprecated) leave empty objects in "addr_info",
and they may come before the valid one, so "addr_info[0]" can miss the
address. Take the first non-empty entry instead, for both IPv4 and IPv6.

Bump PKG_VERSION to 2.8.7

Fixes: https://github.com/openwrt/packages/issues/28990

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
2026-12-01 12:57:03 +01:00
..
etc
…
usr ddns-scripts: fix ULA/deprecated IPv6 in interface mode, update to 2.8.7 2026-12-01 12:57:03 +01:00