luci-mod-status: display secondary lease IPv6 addresses if available
authorJo-Philipp Wich <jo@mein.io>
Thu, 14 Nov 2019 12:47:25 +0000 (13:47 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 14 Nov 2019 12:47:25 +0000 (13:47 +0100)
Ref: https://forum.openwrt.org/t/luci-not-showing-2nd-ipv6-address/48271
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js

index 1a2f70fbfa3e4eed51912bbb1c5c17fcd3644f2a..83c0c151eb49307a120c9d7ac289788f89d05198 100644 (file)
@@ -81,7 +81,7 @@ return L.Class.extend({
 
                        return [
                                host || '-',
-                               lease.ip6addr,
+                               lease.ip6addrs ? lease.ip6addrs.join(' ') : lease.ip6addr,
                                lease.duid,
                                exp
                        ];