From 855b7582d3576f45693e3a48fdb253c813cf4dce Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 14 Jun 2008 14:12:12 +0000 Subject: * Rewrote Luci to be coroutine-safe allowing the use of non-forking webservers * Setting base version to 0.7 --- applications/luci-splash/luasrc/controller/splash/splash.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-splash/luasrc') diff --git a/applications/luci-splash/luasrc/controller/splash/splash.lua b/applications/luci-splash/luasrc/controller/splash/splash.lua index e7448d7fbf..617e0f877c 100644 --- a/applications/luci-splash/luasrc/controller/splash/splash.lua +++ b/applications/luci-splash/luasrc/controller/splash/splash.lua @@ -12,7 +12,7 @@ function index() end function action_activate() - local mac = luci.sys.net.ip4mac(luci.http.env.REMOTE_ADDR) + local mac = luci.sys.net.ip4mac(luci.http.getenv("REMOTE_ADDR")) if mac and luci.http.formvalue("accept") then os.execute("luci-splash add "..mac.." >/dev/null 2>&1") luci.http.redirect(luci.model.uci.get("freifunk", "community", "homepage")) -- cgit v1.2.3