[Commotion-admin] [luci-theme-commotion] When dnsmasq fails all luci interfaces break (#16)
Seamus Tuohy
notifications at github.com
Fri Jan 17 21:07:20 UTC 2014
This issue in on line 103 of the header where the check does not check to see if it has been passed an empty ipv4-address table. An empty table like this is invalid but will occur when dnsmasq fails.
```
uci:foreach("wireless", "wifi-iface",
function(s)
if s and s.mode and s.mode == "adhoc" and s.network then
local iface = conn:call("network.interface."..s.network, "status", {})
if iface and iface["ipv4-address"] then
if iface ~= nil and iface["ipv4-address"][1].address then
mesh_ip = iface["ipv4-address"][1].address
```
---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/luci-theme-commotion/issues/16
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20140117/3889307e/attachment.html>
More information about the Commotion-admin
mailing list