luci-base: network.js: return mac addresses in upper case
authorJo-Philipp Wich <jo@mein.io>
Wed, 31 Jul 2019 06:41:03 +0000 (08:41 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Aug 2019 20:58:15 +0000 (22:58 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/network.js

index 258387995533fbf388caacc2d9628c179bf23bcc..87697a8a43b733cc978faa9088c59fabf6c2ff07 100644 (file)
@@ -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() {