diff options
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index c3c20304e5..d0282ad01f 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -463,7 +463,9 @@ function initNetworkState(refresh) { if (a.family == 'packet') { s.netdevs[name].flags = a.flags; s.netdevs[name].stats = a.data; - s.netdevs[name].macaddr = a.addr; + + if (a.addr != null && a.addr != '00:00:00:00:00:00' && a.addr.length == 17) + s.netdevs[name].macaddr = a.addr; } else if (a.family == 'inet') { s.netdevs[name].ipaddrs.push(a.addr + '/' + a.netmask); |