mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
De-dup IPv6 addresses before getIP6Addrs() returns an array from "ipv6-address" and "ipv6-prefix-assignment" ubus data. This can happen when the local address derived from a delegated prefix matches an explicitly configured IPv6 address. Use a Set to ensure that duplicate entries are filtered out before returning the address list. Signed-off-by: Konstantin Glukhov <KGlukhov@Hotmail.com>