luci-mod-admin-full: fixed ipv6 address display in the overview page of luci 3953/head
authorsunnyqeen <sunnyqeen@gmail.com>
Wed, 22 Apr 2020 12:55:59 +0000 (14:55 +0200)
committersunnyqeen <sunnyqeen@gmail.com>
Wed, 13 May 2020 22:10:18 +0000 (00:10 +0200)
Signed-off-by: sunnyqeen <sunnyqeen@gmail.com>
modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm

index 29a03f2554527aa408a63d10f989a493e5d01185..442495d80be826bf2b30ffb347d00398d054b9bf 100644 (file)
                                        '<%:MAC-Address%>', (ifc6 && ifc6.ether) ? ifc6.mac : null)) ],
                                '<%:Protocol%>', ifc6.i18n ? (ifc6.i18n + (ifc6.proto === 'dhcp' && ifc6.ip6prefix ? '-PD' : '')) : E('em', '<%:Not connected%>'),
                                '<%:Prefix Delegated%>', ifc6.ip6prefix,
-                               '<%:Address%>', (ifc6.ip6prefix) ? (ifc6.ip6addr || null) : (ifc6.ipaddr || '::'),
+                               '<%:Address%>', (ifc6.ip6prefix) ? (ifc6.ip6addr || null) : (ifc6.ip6addr || '::'),
                                '<%:Gateway%>', (ifc6.gw6addr) ? ifc6.gw6addr : '::',
                                '<%:DNS%> 1', (ifc6.dns) ? ifc6.dns[0] : null,
                                '<%:DNS%> 2', (ifc6.dns) ? ifc6.dns[1] : null,