luci-mod-admin-full: allow empty mac in interface status
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_network / iface_status.htm
index 1ebdbfc..adf6dcc 100644 (file)
@@ -25,7 +25,7 @@
                                                html += String.format('<strong><%:Uptime%>:</strong> %t<br />', ifc.uptime);
                                        }
 
-                                       if (ifc.type != 'tunnel')
+                                       if (ifc.macaddr)
                                        {
                                                html += String.format('<strong><%:MAC-Address%>:</strong> %s<br />', ifc.macaddr);
                                        }
 
                                                for (var i = 0; i < ifc.ipaddrs.length; i++)
                                                        html += String.format(
-                                                               '%s%s/%d',
+                                                               '%s%s',
                                                                i ? ', ' : '',
-                                                               ifc.ipaddrs[i].addr,
-                                                               ifc.ipaddrs[i].prefix
+                                                               ifc.ipaddrs[i]
                                                        );
 
                                                html += '<br />';