aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-17 20:30:41 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-17 20:30:41 +0000
commit894d94669187e906df97ad01473d2cb7041b97ae (patch)
tree940e99d1d7b234a8b98d0c1a38b54cc02e3fa681 /net
parentc5377ba75fa5aa15cbb04c565d2d3d4520145cb9 (diff)
downloadprosody-894d94669187e906df97ad01473d2cb7041b97ae.tar.gz
prosody-894d94669187e906df97ad01473d2cb7041b97ae.zip
net.server_event: Add properties like _ip and _port to server objects too
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 2f9ab7d9..53198a12 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -623,6 +623,9 @@ do
readcallback = false; -- read event callback
fatalerror = false; -- error message
nointerface = true; -- lock/unlock parameter
+
+ _ip = addr, _port = port, _pattern = pattern,
+ _sslctx = sslctx;
}
interface.id = tostring(interface):match("%x+$");
interface.readcallback = function( event ) -- server handler, called on incoming connections