diff options
author | Steven Barth <steven@midlink.org> | 2008-05-06 15:06:23 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-06 15:06:23 +0000 |
commit | 60fbb7c06c0ac59bcfedea2311bb55aeb448d98b (patch) | |
tree | fe93ce7d5bbd2e24882d3943eda3b162088b1e65 /contrib/package | |
parent | 6a1fee5115cdf047a29812dcf81b03edeefccb15 (diff) |
* Bugfixes
Diffstat (limited to 'contrib/package')
-rw-r--r-- | contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi b/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi index 91a6b3397..3bff85ee5 100644 --- a/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi +++ b/contrib/package/ffluci-splash/src/luci-splash/htdocs/cgi-bin/index.cgi @@ -9,7 +9,7 @@ require("ffluci.model.uci") local srv local net local ip = ffluci.http.remote_addr() -for k, v in pairs(ffluci.model.uci.show("network").network) do +for k, v in pairs(ffluci.model.uci.sections("network")) do if v[".type"] == "interface" and v.ipaddr then local p = ffluci.sys.net.mask4prefix(v.netmask) if ffluci.sys.net.belongs(ip, v.ipaddr, p) then @@ -21,7 +21,7 @@ for k, v in pairs(ffluci.model.uci.show("network").network) do end local stat = false -for k, v in pairs(ffluci.model.uci.show("luci_splash").luci_splash) do +for k, v in pairs(ffluci.model.uci.sections("luci_splash")) do if v[".type"] == "iface" and v.network == net then stat = true end |