* Last API changes before 0.4 API softfreeze
[project/luci.git] / module / admin-core / src / controller / splash / splash.lua
index 7e3d67ee9658f04f7aa530f7bc4edfaa693521bc..62088be52d5e8c3aaf3f2f9ca6ffcb07a6225aa5 100644 (file)
@@ -1,7 +1,7 @@
 module("ffluci.controller.splash.splash", package.seeall)
 
 function action_activate()
-       local mac = ffluci.sys.net.ip4mac(ffluci.http.remote_addr())
+       local mac = ffluci.sys.net.ip4mac(ffluci.http.env.REMOTE_ADDR)
        if mac and ffluci.http.formvalue("accept") then
                os.execute("luci-splash add "..mac.." >/dev/null 2>&1")
                ffluci.http.redirect(ffluci.model.uci.get("freifunk", "community", "homepage"))