Merge pull request #279 from renatofdds/patch-1

Fix regression in net.lua widget
This commit is contained in:
Luke Bonham 2017-01-24 16:19:27 +01:00 committed by GitHub
commit e64c1443d0
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ local function worker(args)
local settings = args.settings or function() end local settings = args.settings or function() end
-- Compatibility with old API where iface was a string corresponding to 1 interface -- Compatibility with old API where iface was a string corresponding to 1 interface
net.iface = (args.iface and type(args.iface) == "string" and {args.iface}) or {} net.iface = (args.iface and (type(args.iface) == "string" and {args.iface}) or (type(args.iface) == "table" and args.iface)) or {}
function net.get_device() function net.get_device()
helpers.async(string.format("ip link show", device_cmd), function(ws) helpers.async(string.format("ip link show", device_cmd), function(ws)