summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/luasrc/controller/splash
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-splash/luasrc/controller/splash')
-rw-r--r--applications/luci-splash/luasrc/controller/splash/splash.lua2
1 files changed, 1 insertions, 1 deletions
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"))