Software /
code /
prosody
Changeset
694:b97b05261156
Set session.ip to the IP address of connecting clients
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 12 Jan 2009 02:59:45 +0000 |
parents | 693:d8b793e612a9 |
children | 695:3384f2784795 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/sessionmanager.lua Mon Jan 12 02:59:00 2009 +0000 +++ b/core/sessionmanager.lua Mon Jan 12 02:59:45 2009 +0000 @@ -58,6 +58,7 @@ 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