From e64b0c3c0d1707b820f2cc5203d3017574cfa5a6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 31 Jul 2019 08:41:03 +0200 Subject: [PATCH] luci-base: network.js: return mac addresses in upper case Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 258387995..87697a8a4 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -1598,7 +1598,8 @@ Device = L.Class.extend({ }, getMAC: function() { - return this._ubus('macaddr'); + var mac = this._ubus('macaddr'); + return mac ? mac.toUpperCase() : null; }, getIPAddrs: function() { -- 2.25.1