var iwxhr = new XHR();
(function() {
iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "iface_status", self.network)%>', null,
- function(x)
+ function(x, ifc)
{
- var ifc = x.responseText ? eval('(' + x.responseText + ')') : { };
- if (ifc)
+ if (ifc && (ifc = ifc[0]))
{
var is_up = (ifc.flags && ifc.flags.up);
var rxb = ifc.stats ? (ifc.stats["rx_bytes"] / 1024) : 0;
d.innerHTML += String.format(
'%s%s/%d',
i ? ', ' : '',
- ifc.ip6addrs[i].addr,
+ ifc.ip6addrs[i].addr.toUpperCase(),
ifc.ip6addrs[i].prefix
);