mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
e839b9d18d
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>