summaryrefslogtreecommitdiffhomepage
path: root/core/src/ffluci/http.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ffluci/http.lua')
-rw-r--r--core/src/ffluci/http.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ffluci/http.lua b/core/src/ffluci/http.lua
index 06e1c43bd..44d1a925c 100644
--- a/core/src/ffluci/http.lua
+++ b/core/src/ffluci/http.lua
@@ -59,6 +59,12 @@ function request_redirect(category, module, action, ...)
end
+-- Returns the User's IP
+function remote_addr()
+ return ENV.REMOTE_ADDR
+end
+
+
-- Returns the script name
function script_name()
return ENV.SCRIPT_NAME