* Rewrote Luci to be coroutine-safe allowing the use of non-forking webservers
[project/luci.git] / applications / luci-splash / luasrc / controller / splash / splash.lua
index e7448d7..617e0f8 100644 (file)
@@ -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"))