From ff955885022ee77d783f089b12926954be1acda8 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 8 May 2008 20:59:08 +0000 Subject: * applications/luci-splash: Minor bugfixes --- .../luci-splash/root/usr/lib/luci-splash/htdocs/cgi-bin/index.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-splash') diff --git a/applications/luci-splash/root/usr/lib/luci-splash/htdocs/cgi-bin/index.cgi b/applications/luci-splash/root/usr/lib/luci-splash/htdocs/cgi-bin/index.cgi index 3bff85ee51..341aaa4b56 100644 --- a/applications/luci-splash/root/usr/lib/luci-splash/htdocs/cgi-bin/index.cgi +++ b/applications/luci-splash/root/usr/lib/luci-splash/htdocs/cgi-bin/index.cgi @@ -8,7 +8,7 @@ require("ffluci.model.uci") local srv local net -local ip = ffluci.http.remote_addr() +local ip = ffluci.http.env.REMOTE_ADDR 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) @@ -28,7 +28,7 @@ for k, v in pairs(ffluci.model.uci.sections("luci_splash")) do end if not srv then - ffluci.http.textheader() + ffluci.http.prepare_content("text/plain") return print("Unable to detect network settings!") end -- cgit v1.2.3