I am running with both dynamic IPv4 and IPv6 addresses.
Sometimes my ISP changes my IPv4 address without changing my IPv6 address (or rarely, vice versa). However, it seems that in this script, if either address changes, updates for both get sent to the ISP.
To avoid "unnecessary changes considered abusive" warnings from many DDNS providers, ideally it should only update those addresses that have actually changed, but not ones that remain unchanged