aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-12 02:59:45 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-12 02:59:45 +0000
commitc273f4c8905b6d605b788e92ae145b5ba0efc2c7 (patch)
treea97cbf1fe2ed7024eeb1229937e53eea9dbff9ce /core
parent7583e84ee13d63eecf25c9902e5cf4cdf7574192 (diff)
downloadprosody-c273f4c8905b6d605b788e92ae145b5ba0efc2c7.tar.gz
prosody-c273f4c8905b6d605b788e92ae145b5ba0efc2c7.zip
Set session.ip to the IP address of connecting clients
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 963de7ce..f04ca29c 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -58,6 +58,7 @@ function new_session(conn)
log("info", "open sessions now: ".. open_sessions);
local w = conn.write;
session.send = function (t) w(tostring(t)); end
+ session.ip = conn.ip();
return session;
end