Merge pull request #282 from 2009/patch-1

Fix bug where net widget would not get the device name
This commit is contained in:
Luke Bonham 2017-01-24 16:24:23 +01:00 committed by GitHub
commit e0d4a89435

View file

@ -37,7 +37,7 @@ local function worker(args)
function net.get_device()
helpers.async(string.format("ip link show", device_cmd), function(ws)
ws = ws:match("(%w+): <BROADCAST,MULTICAST,.-,UP,LOWER_UP>")
ws = ws:match("(%w+): <BROADCAST,MULTICAST,.-UP,LOWER_UP>")
net.iface = ws and { ws } or {}
end)
end