Diff

core/sessionmanager.lua @ 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
parent 623:5af5a64a729f
child 758:b1885732e979
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