Merge pull request #282 from 2009/patch-1
Fix bug where net widget would not get the device name
This commit is contained in:
commit
e0d4a89435
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue