luci-mod-status: fix querying IPv6 address
authorJo-Philipp Wich <jo@mein.io>
Thu, 20 Sep 2018 00:41:15 +0000 (03:41 +0300)
committerJo-Philipp Wich <jo@mein.io>
Thu, 20 Sep 2018 06:45:05 +0000 (08:45 +0200)
Correct a typo that prevents displaying the interface IPv6 address in
some cases.

Fixes: #2166
Reported-by: Vladislav Grigoryev <20725816+vgaetera@users.noreply.github.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/luasrc/view/admin_status/index.htm

index 3edfd920475971543c35b4f33b4fc557295199fe..54e35b82a06a97d57a32175a4790cd1c5c25a8a9 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,