luci-mod-status: show lease time on IPv6 networks
authorNicolò Veronese <nicveronese@gmail.com>
Tue, 21 Dec 2021 14:50:52 +0000 (15:50 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 14 May 2024 18:06:18 +0000 (20:06 +0200)
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/30_network.js

index 1a0f7037f99aefcb5b3d5fd832daff516521328f..0d051bdeaf9f9bbae3db157c84dac997aa310589 100644 (file)
@@ -21,7 +21,7 @@ function renderbox(ifc, ipv6) {
            active = (dev && ifc.getProtocol() != 'none'),
            addrs = (ipv6 ? ifc.getIP6Addrs() : ifc.getIPAddrs()) || [],
            dnssrv = (ipv6 ? ifc.getDNS6Addrs() : ifc.getDNSAddrs()) || [],
-           expires = (ipv6 ? null : ifc.getExpiry()),
+           expires = ifc.getExpiry(),
            uptime = ifc.getUptime();
 
        return E('div', { class: 'ifacebox' }, [